REVERT Network Updates
This commit is contained in:
28
Dockerfile
28
Dockerfile
@@ -16,31 +16,5 @@ RUN npm prune
|
||||
|
||||
FROM base as production
|
||||
ENV PORT=$PORT
|
||||
|
||||
# Install PM2 and required tools
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
tini \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& npm install -g pm2
|
||||
|
||||
# Copy built application
|
||||
COPY --from=build /app/.output /app/.output
|
||||
|
||||
# Copy PM2 config and entrypoint
|
||||
COPY ecosystem.config.js /app/
|
||||
COPY docker-entrypoint.sh /app/
|
||||
RUN chmod +x /app/docker-entrypoint.sh
|
||||
|
||||
# Create logs directory
|
||||
RUN mkdir -p /app/logs
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:${PORT}/api/health || exit 1
|
||||
|
||||
# Use tini as init process
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
|
||||
# Start with our custom entrypoint
|
||||
CMD ["/app/docker-entrypoint.sh"]
|
||||
CMD ["node", ".output/server/index.mjs"]
|
||||
Reference in New Issue
Block a user