diff --git a/client/Dockerfile.production b/client/Dockerfile.production index 91ec1038..e43c4ede 100644 --- a/client/Dockerfile.production +++ b/client/Dockerfile.production @@ -28,6 +28,9 @@ FROM node:16-alpine AS final WORKDIR /app +ARG NODE_ENV +ENV NODE_ENV ${NODE_ENV:-production} + RUN npm install -g serve COPY --from=builder /app/scripts/ /app/scripts/ diff --git a/server/Dockerfile.production b/server/Dockerfile.production index 58c433db..312cf40a 100644 --- a/server/Dockerfile.production +++ b/server/Dockerfile.production @@ -24,6 +24,9 @@ FROM node:16-alpine AS final WORKDIR /app +ARG NODE_ENV +ENV NODE_ENV ${NODE_ENV:-production} + RUN apk add python3 gcc g++ make cmake COPY --from=builder /app/scripts/ /app/scripts/