Skip to content

Commit

Permalink
Update Docker for 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
spkane committed Aug 27, 2022
1 parent 5f2da85 commit 93afbc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:13.13.0-alpine
FROM node:14-alpine

RUN mkdir /app
WORKDIR /app
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ Alternatively, you can install dependencies using Docker.

### Building

* You can build this image by running the following command in the root of this repository: `docker build .`
* You can also pass in a valid JSPM_GITHUB_AUTH_TOKEN by building like this: `docker build --build-arg JSPM_GITHUB_AUTH_TOKEN="a_jspm_encrypted_github_token" .`
* For more information see: https://stackoverflow.com/questions/30995040/jspm-saying-github-rate-limit-reached-how-to-fix
* You can assemble a Linux container image by running the following command in the root of this repository: `docker build .`

### Running

* If your build completes sucessfully there will be a new image ID printed at the end of the build, which you can then use to to run it: `docker run -d -p 80:8080 ${IMAGE_ID_FROM_BUILD}`
* If your build completes sucessfully there will be a new image ID or SHA printed at the end of the build, which you can then use to to run it: `docker run -d -p 80:8080 ${IMAGE_ID_FROM_BUILD}`
* or for a community built image try this: `docker run -d -p 80:8080 spkane/quantum-game:latest`

and then open up a web browser and point it to port 80 on your Docker host.

0 comments on commit 93afbc8

Please sign in to comment.