fix build
release-tag / release-image (push) Failing after 1m1s

This commit is contained in:
2025-06-01 13:13:23 +02:00
parent 495ac35937
commit 4906b1ddde
3 changed files with 73 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM node:lts-alpine AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npx nest build
# étape de production
FROM node:lts-alpine AS production-stage
WORKDIR /app
COPY --from=build-stage /app/dist/ /app
COPY --from=build-stage /app/node_modules/ /app/node_modules
EXPOSE 3000
ENV API_PREFIX=/api
ENV PG_HOST=127.0.0.1
ENV PG_USER=polls
ENV PG_PASSWORD=polls
ENV PG_DATABASE=polls
CMD ["node", "main"]