Created
February 4, 2020 14:52
-
-
Save JovanyNegocio/2dfe789961c344a254656adcb12867ac to your computer and use it in GitHub Desktop.
This file contains hidden or 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: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