Skip to content

Instantly share code, notes, and snippets.

@JovanyNegocio
Created February 4, 2020 14:52
Show Gist options
  • Save JovanyNegocio/2dfe789961c344a254656adcb12867ac to your computer and use it in GitHub Desktop.
Save JovanyNegocio/2dfe789961c344a254656adcb12867ac to your computer and use it in GitHub Desktop.
FROM node:10
RUN mkdir -p /home/node/frontend/node_modules && chown -R node:node /home/node/frontend
WORKDIR /home/node/frontend
COPY package*.json ./
RUN npm install
COPY . .
COPY --chown=node:node . .
USER node
EXPOSE 3000
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment