Last active
February 9, 2021 02:02
-
-
Save Integralist/e2f3ff5522d20605874e1ce18258bc02 to your computer and use it in GitHub Desktop.
[Dockerize Node] #docker #node
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:9.11.1 | |
ENV NPM_CONFIG_LOGLEVEL warn | |
ENV NODE_PATH=/node_modules | |
# Seems react drops path-expected binaries, so we just add node’s bin folder to the PATH | |
ENV PATH=$PATH:/node_modules/.bin | |
COPY app/package.json / | |
RUN cd / | |
RUN npm install | |
COPY app /application | |
WORKDIR /application | |
CMD ["npm", "run", "start"] | |
# CMD ["bash", "/app/scripts/run"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment