diff --git a/Dockerfile b/Dockerfile index 89b281f..e61d090 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,5 @@ -FROM alpine:latest - -MAINTAINER alex - -RUN apk --update add nginx +FROM nginx:latest COPY 2048 /usr/share/nginx/html -EXPOSE 80 - -CMD ["nginx", "-g", "daemon off;"] +EXPOSE 80 \ No newline at end of file diff --git a/README.md b/README.md index 7cf5cea..a6bd268 100644 --- a/README.md +++ b/README.md @@ -4,26 +4,18 @@ simple is better a smaller docker version of 2048 -Base on gabrielecirulli/2048(https://github.com/gabrielecirulli/2048) - -Base on alpine +Base on gabrielecirulli/2048 (https://github.com/gabrielecirulli/2048) Base on nginx #dockerfile - FROM alpine:latest - - MAINTAINER alex - - RUN apk --update add nginx + FROM nginx:latest COPY 2048 /usr/share/nginx/html EXPOSE 80 - CMD ["nginx", "-g", "daemon off;"] - # run the docker container with your own build git clone https://github.com/alexwhen/docker-2048.git @@ -37,7 +29,3 @@ Base on nginx # Access the game http://127.0.0.1:8080 - -If you run docker with boot2docker on Mac or Windows, the URL should be: - - http://192.168.59.103:8080