Skip to content

Instantly share code, notes, and snippets.

@an01f01
Last active April 21, 2025 17:38
Show Gist options
  • Save an01f01/a7738f702391f10509cbbfcbe88e173d to your computer and use it in GitHub Desktop.
Save an01f01/a7738f702391f10509cbbfcbe88e173d to your computer and use it in GitHub Desktop.
# 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"]
@an01f01
Copy link
Author

an01f01 commented Apr 21, 2025

Updated and cleaned up comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment