diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3bb794c --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/README.md b/README.md index 63ed958..67ea5b9 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Projektmanagement Game -## Deploy +## Build ``` -docker run -d -it --rm \ - --publish 8181:80 \ - --volume :/usr/share/nginx/html \ - nginx +docker build Projektmanagement-Game/ -t pm-game ``` -Replace `` with the absolute path of your repository. \ No newline at end of file +## Deploy +``` +docker run -d -p 80:5000 pm-game +``` \ No newline at end of file