fix: update dockerfile
This commit is contained in:
parent
64d557f9fd
commit
ba23bd9318
12
Dockerfile
12
Dockerfile
@ -1,17 +1,17 @@
|
||||
FROM denoland/deno:alpine-2.1.4
|
||||
|
||||
ARG GIT_REVISION
|
||||
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}
|
||||
ENV DATA_DIR=/app/data
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN apk add curl &&\
|
||||
deno install --allow-scripts &&\
|
||||
RUN apk add curl libstdc++ &&\
|
||||
deno install --allow-import --allow-ffi --allow-scripts=npm:sharp@0.33.5-rc.1 -e main.ts &&\
|
||||
sed -i -e 's/"deno"/"no-deno"/' node_modules/@libsql/client/package.json &&\
|
||||
mkdir -p $DATA_DIR &&\
|
||||
deno task build
|
||||
mkdir -p $DATA_DIR
|
||||
|
||||
RUN deno task build
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user