Last active
August 16, 2020 16:23
-
-
Save bengrunfeld/96ed229402eccedb066a7777404646ce to your computer and use it in GitHub Desktop.
Dockerfile for live reload
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:12.18.3 | |
WORKDIR /usr/src/app | |
COPY package*.json ./ | |
ENV MONGO_URL "mongodb://mongo:27017" | |
ENV DB_NAME points | |
ENV COL_NAME dataPoints | |
RUN npm install | |
COPY . . | |
RUN npm run build | |
CMD ["npm", "run", "dev"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment