Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
/ docker-2048 Public archive
forked from alexwhen/docker-2048

a docker version

License

Notifications You must be signed in to change notification settings

grabyo/docker-2048

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-2048

simple is better

a smaller docker version of 2048

Base on gabrielecirulli/2048(https://github.com/gabrielecirulli/2048)

Base on alpine

Base on nginx

#dockerfile

FROM alpine:latest

MAINTAINER alex <[email protected]>

RUN apk --update add nginx

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
docker build -t "docker-2048" .
docker run -d -p 8080:80 docker-2048

run the docker container by pulling the image directly

docker run -d -p 8080:80 alexwhen/docker-2048

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

Packages

No packages published

Languages

  • JavaScript 39.4%
  • CSS 33.4%
  • SCSS 20.2%
  • HTML 6.7%
  • Dockerfile 0.3%