Created
May 2, 2020 17:23
-
-
Save edgargonzalez525/1313af5d7e44a8437acc58184ba469c9 to your computer and use it in GitHub Desktop.
This file contains 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: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