memorium/Dockerfile

19 lines
402 B
Docker
Raw Normal View History

2025-01-18 01:52:28 +01:00
FROM denoland/deno:2.1.4
2023-07-26 13:52:26 +02:00
2025-01-06 18:46:49 +01:00
ENV DATA_DIR=/app/data
2023-07-26 13:52:26 +02:00
WORKDIR /app
COPY . .
2025-01-05 23:53:36 +01:00
2025-01-18 01:52:28 +01:00
RUN deno run -A npm:playwright install --with-deps firefox &&\
2025-01-18 01:30:43 +01:00
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
2023-07-26 13:52:26 +02:00
2025-01-18 01:30:43 +01:00
RUN deno task build
2023-07-26 13:52:26 +02:00
2025-01-18 01:30:43 +01:00
EXPOSE 8000
2025-01-18 01:28:48 +01:00
2025-01-18 01:30:43 +01:00
CMD ["run", "-A", "main.ts"]