Created
June 17, 2020 07:48
-
-
Save numanayhan/b83f8e9cffe8cd1455a916505e848279 to your computer and use it in GitHub Desktop.
nodejs-api
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:12 | |
#Proje nodejs 12 ile çalışması için | |
WORKDIR /home/node/app | |
#proje yolu belirlenir | |
COPY Dijital /home/node/app | |
# Docker içine kopyalanır | |
RUN npm install | |
# Docker imajı proje halindeyken çalıştırır | |
CMD npm run start | |
# Container çalıştırılırken CMD çalışır. | |
EXPOSE 3000 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment