Created
July 22, 2020 19:45
-
-
Save MarkyC/32a42e5ef92011c0ce9ad69160ba57ed 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 | |
# Setting working directory. All the path will be relative to WORKDIR | |
WORKDIR /usr/src/app | |
# Installing dependencies | |
# We re-run npm install here since the build environment could be different from the runtime env | |
COPY package*.json ./ | |
RUN npm install | |
# Copying source files | |
COPY . . | |
RUN printenv | |
# Running the app | |
CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment