Skip to content

Instantly share code, notes, and snippets.

@edgargonzalez525
Created May 2, 2020 17:23
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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