Skip to content

Commit 402b5c0

Browse files
committed
Improve Dockerfile and README
1 parent 4f4b7a0 commit 402b5c0

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ RUN apt-get update && apt-get install -y libxrender1 libxtst6 libxi6
55
WORKDIR /app
66
ADD . /app
77

8-
ENV HEADLESS=true
8+
ENV HEADLESS=false
99

1010
ENTRYPOINT sbt -Djava.awt.headless=$HEADLESS run

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,23 @@ If two cards are the same and one card is different in any feature, then it is n
2424

2525
## Docker
2626

27-
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:
27+
You can run SET in a Docker container. To do so, you need to have Docker installed on your machine.
28+
First build the Docker image by running the following command in the root directory of the project:
29+
30+
```bash
31+
docker build -t set-game-scala .
32+
```
33+
34+
Then you can run the game by executing the following command:
2835

2936
```bash
3037
docker run -it set-game-scala
3138
```
3239

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

3542
```bash
36-
docker run -it -e HEADLESS=false set-game-scala
43+
docker run -it -e HEADLESS=true set-game-scala
3744
```
3845

3946
## License

0 commit comments

Comments
 (0)