Skip to content

Instantly share code, notes, and snippets.

@DavidDeCoding
Created March 27, 2022 06:18
Show Gist options
  • Save DavidDeCoding/6892688d46479da07127b0a51b40d5b5 to your computer and use it in GitHub Desktop.
Save DavidDeCoding/6892688d46479da07127b0a51b40d5b5 to your computer and use it in GitHub Desktop.
Sample ExpressJS Application Dockerfile
FROM node:12.4-alpine
RUN mkdir /app
WORKDIR /app
COPY package.json .
RUN npm install && mv node_modules /node_modules
COPY . .
CMD ["node", "index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment