Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Last active August 17, 2022 12:33
Show Gist options
  • Save SarahElson/456fa898a31f81b677cf5e60b43ef2b3 to your computer and use it in GitHub Desktop.
Save SarahElson/456fa898a31f81b677cf5e60b43ef2b3 to your computer and use it in GitHub Desktop.
Podman vs Docker: All You Need To Know!
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