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
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LICENSE
README.md
.gitiognore
Rakefile
Gemfile
Gemfile.lock
experiments/
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM busybox

# Create a non-root user to own the files and run our server
RUN adduser -D static
USER static

WORKDIR /home/static

# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
COPY . .

# Run BusyBox httpd
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ underlying source files:

rake assets:server # run a simple Rack server that autogenerates unified assets files automatically on change

Dockerized
==========
## To play this amazing game
### Directly from Docker
- Run the below command in terminal
```
docker run -it --rm --init -p 31:3000 siddiquesa/dockergames:gamesnake
```
then browse to _**`http://localhost:31`**_

### Or using source codes
[check here](https://github.com/siddique-sa/Docker_Games/tree/main/Snake)

TODO
====

Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ <h1>High Scores</h1>
<li><span class='key'> JS audio </span> <a class='value' target="_credits" href="https://github.com/jakesgordon/javascript-audio-fx">Jake Gordon</a></li>
<li><span class='key'> JS animation </span> <a class='value' target="_credits" href="http://berniesumption.com/software/animator/">Bernie Sumption</a></li>
<li><span class='key'> JS counter </span> <a class='value' target="_credits" href="https://github.com/mrdoob/stats.js">Mr.Doob</a></li>
<li><span class='key'> Dockerized </span> <a class='value' target="_credits" href="https://github.com/siddique-sa/Docker_Games">Siddique</a></li>
</ul>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion snakes.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.