Skip to content

Instantly share code, notes, and snippets.

@MarkyC
Created July 22, 2020 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarkyC/32a42e5ef92011c0ce9ad69160ba57ed to your computer and use it in GitHub Desktop.
Save MarkyC/32a42e5ef92011c0ce9ad69160ba57ed to your computer and use it in GitHub Desktop.
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