Added Dockerfile
This commit is contained in:
parent
6f62883275
commit
0381650c66
14
Dockerfile
Normal file
14
Dockerfile
Normal 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" ]
|
12
README.md
12
README.md
@ -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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user