feature: Adds docker support.

This commit is contained in:
greysoh 2024-04-28 09:42:02 -04:00
parent 6ff28de463
commit a03f3ef344
No known key found for this signature in database
GPG key ID: FE0F173B8FC01571
7 changed files with 81 additions and 2 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM node:20.11.1-bookworm
WORKDIR /app/
COPY src /app/src
COPY prisma /app/prisma
COPY docker-entrypoint.sh /app/
COPY tsconfig.json /app/
COPY package.json /app/
COPY package-lock.json /app/
COPY srcpatch.sh /app/
RUN sh srcpatch.sh
RUN npm install --save-dev
RUN npm run build
RUN rm srcpatch.sh out/**/*.ts out/**/*.map
RUN rm -rf src
RUN npm prune --production
ENTRYPOINT sh docker-entrypoint.sh