fix: add missing dockerfile deps
This commit is contained in:
parent
6b6b9f8a6a
commit
e9cc56d7ee
19
Dockerfile
19
Dockerfile
@ -1,18 +1,21 @@
|
|||||||
FROM denoland/deno:2.1.4
|
FROM denoland/deno:2.1.4 AS build
|
||||||
|
|
||||||
ENV DATA_DIR=/app/data
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN deno run -A npm:playwright install --with-deps firefox &&\
|
ENV DATA_DIR=/app/data
|
||||||
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 &&\
|
RUN apt-get update && apt install -y curl && \
|
||||||
mkdir -p $DATA_DIR
|
deno run -A npm:playwright install --with-deps firefox && \
|
||||||
|
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
|
||||||
|
|
||||||
RUN deno task build
|
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
# Start the application
|
||||||
CMD ["run", "-A", "main.ts"]
|
CMD ["run", "-A", "main.ts"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user