Created
July 30, 2019 03:03
-
-
Save battlecow/7d98a64088e9ed3a2fb9283700a19fea 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-alpine | |
ENV NODE_ENV production | |
USER node | |
WORKDIR /home/node | |
COPY --chown=node:node . . | |
RUN cp ./api/package*json ./ && \ | |
npm install | |
WORKDIR /home/node/api | |
EXPOSE 3000 | |
CMD ["node", "app.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment