Skip to content

Commit

Permalink
Dockerfile created, documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
manueltarouca committed Oct 4, 2022
1 parent e1d5203 commit 14a93df
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
.gitignore
.vscode
node_modules
npm-debug.log
Dockerfile*
docker-compose*
README.md
LICENSE
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ npm run build:dev

If you receive errors about the manifest or assets loading, try running `npm run assetLister` to create a list for the app.

### Docker setup

First, be sure to have Docker installed, then build the image with the following command `docker build -t yourusername/ancient-beast .`.

To run the image, try running `docker run -p80:8383 yourusername/ancient-beast`.

### Beta Testing

To have the game up and running on your local machine, simply run this command in the terminal:
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:lts

WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build:dev
CMD ["npm", "run", "start"]

0 comments on commit 14a93df

Please sign in to comment.