mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 10:27:26 +00:00
remove nginx and pm2
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user