Skip to content

Commit

Permalink
Improve Dockerfile and README
Browse files Browse the repository at this point in the history
  • Loading branch information
patzly committed Jan 17, 2024
1 parent 4f4b7a0 commit 402b5c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ RUN apt-get update && apt-get install -y libxrender1 libxtst6 libxi6
WORKDIR /app
ADD . /app

ENV HEADLESS=true
ENV HEADLESS=false

ENTRYPOINT sbt -Djava.awt.headless=$HEADLESS run
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,23 @@ If two cards are the same and one card is different in any feature, then it is n

## Docker

You can run the SET game in a Docker container. To do so, you need to have Docker installed on your machine. Then run the following command in the root directory of the project:
You can run SET in a Docker container. To do so, you need to have Docker installed on your machine.
First build the Docker image by running the following command in the root directory of the project:

```bash
docker build -t set-game-scala .
```

Then you can run the game by executing the following command:

```bash
docker run -it set-game-scala
```

If you are on Windows or Linux, you can run the following command instead to enable the GUI:
On macOS, you need to run the following command instead to disable the GUI as macOS does not support X11:

```bash
docker run -it -e HEADLESS=false set-game-scala
docker run -it -e HEADLESS=true set-game-scala
```

## License
Expand Down

0 comments on commit 402b5c0

Please sign in to comment.