Skip to content

Commit 528b7fe

Browse files
committed
Improve Dockerfile and README
1 parent 402b5c0 commit 528b7fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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=false
8+
ENV HEADLESS=true
99

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Then you can run the game by executing the following command:
3737
docker run -it set-game-scala
3838
```
3939

40-
On macOS, you need to run the following command instead to disable the GUI as macOS does not support X11:
40+
On Linux, you can run the following command instead to enable the GUI:
4141

4242
```bash
43-
docker run -it -e HEADLESS=true set-game-scala
43+
docker run -it -e HEADLESS=false -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix set-game-scala
4444
```
4545

4646
## License

0 commit comments

Comments
 (0)