fix: don't need to expose 3000 in dev
This commit is contained in:
@@ -58,9 +58,6 @@ COPY --chown=appuser:appgroup healthcheck.js .
|
|||||||
COPY --chown=root:root entrypoint.sh /usr/local/bin/
|
COPY --chown=root:root entrypoint.sh /usr/local/bin/
|
||||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
# Expose the port the server runs on
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
# Add a healthcheck to ensure the container is running correctly.
|
# Add a healthcheck to ensure the container is running correctly.
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
||||||
CMD ["su-exec", "appuser", "node", "healthcheck.js"]
|
CMD ["su-exec", "appuser", "node", "healthcheck.js"]
|
||||||
|
Reference in New Issue
Block a user