Fix exposed port in Dockerfile

Even if you change the default port for your app, Docker still exposes hardcoded port 9000.
This commit is contained in:
Yuto Chikazawa 2024-11-26 01:27:36 +09:00
parent 5be8789576
commit 5af81d96ae

View File

@ -22,5 +22,5 @@ COPY --from=build --chown=node:node /app/.git /app/.git
USER node
EXPOSE 9000
EXPOSE ${API_PORT}
CMD [ "node", "src/cobalt" ]