build: add dockerfile
All checks were successful
Build / build (push) Successful in 34s

This commit is contained in:
Corban-Lee Jones 2025-05-17 00:17:38 +01:00
parent 8dd702515d
commit 50d3f1d0a8
2 changed files with 27 additions and 0 deletions

12
.dockerignore Normal file
View File

@ -0,0 +1,12 @@
dist/
node_modules/
generated/
logs/
.env
# Prisma local database
*.db
*.db-journal
# Exclude generated public files, which can be large with bundling
src/client/public/generated/

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:23.10-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npx prisma generate
RUN npm run build
RUN rm -rf src/
EXPOSE 3000
CMD ["npm", "run", "start"]