Skip to content

Instantly share code, notes, and snippets.

@bengrunfeld
Last active August 16, 2020 16:23
Show Gist options
  • Save bengrunfeld/96ed229402eccedb066a7777404646ce to your computer and use it in GitHub Desktop.
Save bengrunfeld/96ed229402eccedb066a7777404646ce to your computer and use it in GitHub Desktop.
Dockerfile for live reload
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