web: add docker file

This commit is contained in:
Dmitriy Pleshevskiy 2022-05-29 14:37:46 +03:00
parent 2822a45dee
commit 6b9f07a6a5
1 changed files with 13 additions and 0 deletions

13
web/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM denoland/deno:alpine-1.22.1
EXPOSE 33334
WORKDIR /app
USER deno
ADD . .
# Compile the main app so that it doesn't need to be compiled each startup/entry.
RUN deno cache server.ts
CMD ["run", "-A", "server.ts"]