Added Dockerfile

This commit is contained in:
Administrator 2021-05-26 16:59:19 +02:00
parent 6f62883275
commit 0381650c66
2 changed files with 20 additions and 6 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY Webservice Webservice
COPY public public
EXPOSE 5000
CMD [ "node", "Webservice/server.js" ]

View File

@ -1,12 +1,12 @@
# Projektmanagement Game # Projektmanagement Game
## Deploy ## Build
``` ```
docker run -d -it --rm \ docker build Projektmanagement-Game/ -t pm-game
--publish 8181:80 \
--volume <path-to-repo>:/usr/share/nginx/html \
nginx
``` ```
Replace `<path-to-repo>` with the absolute path of your repository. ## Deploy
```
docker run -d -p 80:5000 pm-game
```