fix: add few changes

This commit is contained in:
Emnaghz
2024-09-27 23:57:15 +01:00
committed by Mohamed Marrouchi
parent 99c5765e6f
commit a71bef2161
2 changed files with 16 additions and 17 deletions

View File

@@ -15,6 +15,22 @@ RUN npm i --verbose --maxsockets 6
RUN npm run build
FROM node:18-alpine AS development
WORKDIR /app
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/ .
ENV NODE_ENV=development
RUN npm install
EXPOSE 3000
CMD ["npm", "run", "start:debug"]
FROM node:18-alpine AS production
WORKDIR /app
@@ -31,19 +47,3 @@ RUN npm prune --production
EXPOSE 3000
CMD ["npm", "run", "start:prod"]
FROM node:18-alpine AS development
WORKDIR /app
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/ .
ENV NODE_ENV=development
RUN npm install
EXPOSE 3000
CMD ["npm", "run", "start:dev"]