Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play the game by running the project on a docker container #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:latest
WORKDIR /var/tmp
COPY . /var/tmp
RUN npm install && npm run extract
ENTRYPOINT ["npm", "start"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ If you need to make changes to MTL/OBJ files and want to preserve them, run this

npm run compress

## Docker

If you don't have npm stuff installed but you want to play the game, you can run the project on a Docker container.

Run in this directory:

docker-compose up

You can then play the game at http://localhost:3000, and the Browsersync UI will be at http://localhost:3001.

## Leaderboard selection

Bash supports multiple options for leaderboard storage. The default is in-browser `localStorage`. A networked leaderboard is also supported, through sending leaderboard entries to a Parse server.
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'
services:
clh-bash:
build:
context: ./
dockerfile: DockerFile
ports:
- "3000:3000"
- "3001:3001"