remove nginx and pm2

This commit is contained in:
Maidul Islam
2023-10-15 23:58:04 +01:00
parent 13c1e2b349
commit abe1f54aab
4 changed files with 9 additions and 70 deletions
+6 -10
View File
@@ -94,22 +94,18 @@ FROM base AS production
WORKDIR /
# Install PM2
RUN npm install -g pm2
# Copy ecosystem.config.js
COPY ecosystem.config.js .
RUN apk add --no-cache nginx
COPY nginx/default-stand-alone-docker.conf /etc/nginx/nginx.conf
COPY --from=backend-runner /app /backend
COPY --from=frontend-runner /app ./backend/frontend-build
EXPOSE 80
ENV PORT 80
ENV HTTPS_ENABLED false
ENV NODE_ENV production
CMD ["pm2-runtime", "start", "ecosystem.config.js"]
WORKDIR /backend
CMD ["node", "build/index.js"]