cleanup = Dockerfile

This commit is contained in:
2025-07-27 14:28:09 -05:00
parent f3bf6ff9af
commit 5619007b0f
10 changed files with 20 additions and 353 deletions

View File

@@ -0,0 +1,19 @@
# Build Stage
FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Runtime Stage
FROM node:18-alpine
WORKDIR /app
COPY --from=build /app/dist /app/dist
COPY --from=build /app/package*.json /app/
RUN npm install --production
CMD ["node", "dist/main.js"]