Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
FROM alpine:latest

MAINTAINER alex <[email protected]>

RUN apk --update add nginx
FROM nginx:latest

COPY 2048 /usr/share/nginx/html

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
EXPOSE 80
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>

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
Expand All @@ -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