Last active
August 17, 2022 12:33
-
-
Save SarahElson/456fa898a31f81b677cf5e60b43ef2b3 to your computer and use it in GitHub Desktop.
Podman vs Docker: All You Need To Know!
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
FROM node:16 | |
# Create app directory | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied | |
# where available (npm@5+) | |
COPY package*.json ./ | |
RUN npm install | |
# If you are building your code for production | |
# RUN npm ci --only=production | |
# Bundle app source | |
COPY . . | |
EXPOSE 3000 | |
CMD [ "node", "server.js" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment