Created
April 26, 2020 22:14
-
-
Save Rolilink/4f75378e1e237e533a2e6033e81661e4 to your computer and use it in GitHub Desktop.
Node services Dockerfile
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: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