Last active
April 21, 2025 17:38
-
-
Save an01f01/a7738f702391f10509cbbfcbe88e173d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uses the node base image with the latest LTS version | |
FROM registry1.dso.mil/ironbank/opensource/nodejs/debian/nodejs:18.19.1 | |
RUN mkdir -p /home/node/app | |
WORKDIR /home/node/app | |
COPY package.json /home/node/app/ | |
USER node | |
COPY --chown=node:node server.js /home/node/app/ | |
# Installs npm dependencies on container | |
RUN npm install | |
# Informs Docker that the container listens on the | |
# specified network ports at runtime | |
EXPOSE 4000 8085 | |
# Command container will actually run when called | |
CMD ["node", "server.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated and cleaned up comments