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
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"