Forked from praveenweb/2-node-hot-reload.Dockerfile
Last active
March 2, 2018 11:57
-
-
Save lex111/f05fcce2c9e8b1dcd17cd923c955cb6b to your computer and use it in GitHub Desktop.
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:carbon | |
# Создать директорию app | |
WORKDIR /app | |
# Установить nodemon для горячей перезагрузки | |
RUN npm install -g nodemon | |
# Установить зависимости приложения | |
# Используется символ подстановки для копирования как package.json, так и package-lock.json, | |
# работает с npm@5+ | |
COPY package*.json ./ | |
RUN npm install | |
# Скопировать исходники приложения | |
COPY src /app | |
EXPOSE 8080 | |
CMD [ "nodemon", "server.js" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment