first commit

This commit is contained in:
2024-03-21 16:33:43 -04:00
commit 6f78bd8ce4
34 changed files with 6393 additions and 0 deletions

17
Dockerfile.prod Executable file
View File

@@ -0,0 +1,17 @@
FROM node:19.7.0 AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build
RUN npm prune --production
FROM node:19.7.0
WORKDIR /app
COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/
COPY package.json .
EXPOSE 3000
ENV NODE_ENV=production
CMD [ "node", "build" ]