diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8224930 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM denoland/deno:latest + +EXPOSE 8000 +USER deno + +# Cache the dependencies as a layer (the following two steps are re-run only when deps.ts is modified). +# Ideally cache deps.ts will download and compile _all_ external files used in main.ts. +ADD models /app/models +ADD public /app/public +ADD utils /app/utils +COPY deno.json /app +COPY deno.lock /app +COPY README.md /app + +RUN deno install + +ENV FSDB_ROOT=/.fsdb +ENV TRACE_ERROR_RESPONSES=true +ENV SERVERUS_TYPESCRIPT_IMPORT_LOGGING=true +ENV APP_ROOT=/app/public + +CMD ["sh", "-c", "deno --allow-env --allow-read --allow-write --allow-net jsr:@andyburke/serverus --root ${APP_ROOT}"] diff --git a/README.md b/README.md index 08152f8..c4e2732 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ These are in no particular order. Pull requests updating this section welcome fo feature discussions. - [ ] should everything be an event in a room? +- [X] get a first-pass podman/docker setup up - [X] sign up - [X] check for logged in user session - [X] log in