Initial commit

This commit is contained in:
Oliver 2023-08-29 19:10:54 -06:00 committed by GitHub
commit e6d6427ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 4378 additions and 0 deletions

26
api/dockerfile Normal file
View file

@ -0,0 +1,26 @@
from node:19 as base
workdir /app
expose 6969
run npm install --global typescript@4
copy package*.json tsconfig.json /app/
run npm install
healthcheck CMD curl -f http://localhost:6969/health
copy ./src ./src
run tsc
from base as dev
run npm install
cmd [ "/bin/bash" ]
from base as prod
run npm install --omit=dev
run rm -rf src tsconfig.json
cmd [ "NODE_ENV=production", "node", "dist/main.js" ]