This commit is contained in:
parent
8dd702515d
commit
50d3f1d0a8
12
.dockerignore
Normal file
12
.dockerignore
Normal 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
15
Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user