Skip to content

Instantly share code, notes, and snippets.

@Rolilink
Created April 26, 2020 22:14
Show Gist options
  • Save Rolilink/4f75378e1e237e533a2e6033e81661e4 to your computer and use it in GitHub Desktop.
Save Rolilink/4f75378e1e237e533a2e6033e81661e4 to your computer and use it in GitHub Desktop.
Node services Dockerfile
FROM node:erbium
WORKDIR /www
ENV RUNTIME dev
EXPOSE 3000
# Install app dependencies
COPY package.json ./
COPY yarn.lock ./
RUN yarn
# Install nodemon for development
RUN yarn global add nodemon
# Bundle app source
COPY . .
CMD yarn dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment