Skip to content

Instantly share code, notes, and snippets.

@edgargonzalez525
Created May 2, 2020 17:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgargonzalez525/1313af5d7e44a8437acc58184ba469c9 to your computer and use it in GitHub Desktop.
Save edgargonzalez525/1313af5d7e44a8437acc58184ba469c9 to your computer and use it in GitHub Desktop.
FROM node:12.15.0-alpine
# Create app directory
WORKDIR /usr/src/app
# Copy package files
COPY package*.json ./
# Install npm packages
RUN npm install
# Bundle app source
COPY . .
# Build our app for production
RUN npm run build
EXPOSE 3000
CMD [ "npm", "run", "start:prod" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment