From ba23bd931806c83ac5566021ab02017c6dd7d36b Mon Sep 17 00:00:00 2001 From: Max Richter Date: Mon, 6 Jan 2025 18:46:49 +0100 Subject: [PATCH] fix: update dockerfile --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index de381d2..5a8910b 100644 --- a/Dockerfile +++ b/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