Skip to content

Instantly share code, notes, and snippets.

@Integralist
Last active February 9, 2021 02:02
Show Gist options
  • Save Integralist/e2f3ff5522d20605874e1ce18258bc02 to your computer and use it in GitHub Desktop.
Save Integralist/e2f3ff5522d20605874e1ce18258bc02 to your computer and use it in GitHub Desktop.
[Dockerize Node] #docker #node
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