memorium/Dockerfile

26 lines
575 B
Docker
Raw Permalink Normal View History

2025-01-18 02:01:26 +01:00
FROM denoland/deno:2.1.4 AS build
2023-07-26 13:52:26 +02:00
RUN apt-get update && apt-get install -y --no-install-recommends \
curl && \
deno run -A npm:playwright install --with-deps firefox &&\
apt-get clean && \
rm -rf /var/lib/apt/lists/*
2023-07-26 13:52:26 +02:00
WORKDIR /app
COPY deno.json /app/
2023-07-26 13:52:26 +02:00
COPY . .
2025-01-05 23:53:36 +01:00
2025-01-18 02:01:26 +01:00
ENV DATA_DIR=/app/data
RUN mkdir -p $DATA_DIR && \
deno install --allow-import --allow-ffi --allow-scripts=npm:sharp@0.33.5-rc.1 -e main.ts &&\
2025-01-18 01:30:43 +01:00
sed -i -e 's/"deno"/"no-deno"/' node_modules/@libsql/client/package.json &&\
2025-01-18 02:01:26 +01:00
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"]
2025-01-18 02:01:26 +01:00