Merge branch 'docker' into 'main'

Add a basic Dockerfile

See merge request soapbox-pub/ditto!263
This commit is contained in:
Alex Gleason 2024-05-15 23:41:33 +00:00
commit 132eed36b4
2 changed files with 14 additions and 0 deletions

6
.dockerignore Normal file
View File

@ -0,0 +1,6 @@
.env
*.cpuprofile
*.swp
deno-test.xml
/data

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM denoland/deno:1.43.3
EXPOSE 4036
WORKDIR /app
RUN mkdir -p data && chown -R deno data
USER deno
COPY . .
RUN deno cache src/server.ts
CMD deno task start