-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (22 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM hseeberger/scala-sbt:8u265_1.4.3_2.13.4
RUN apt-get update && \
apt-get install -y --no-install-recommends openjfx && \
rm -rf /var/lib/apt/lists/* && \
apt-get install -y sbt libxrender1 libxtst6 libxi6
WORKDIR /schach
ADD . /schach
CMD sbt run
#CMD sbt test
#If you want to run the tests you should comment out the RUN Command and its specifications and
#replace sbt run with sbt test
#To run the Game correctly via Docker and without any crashes regarding the GUI
#you will need to install (atleast on Windows) VcXsrv X Server for Windows (or something similiar)
#->https://sourceforge.net/projects/vcxsrv/
#open XLauncher select 'multiple windows' -> submit
#select 'start no client' -> submit
#enable 'disable access control' -> submit
#pull image with 'docker pull schmidtjan0/schach:latest'
#->after building the image run it like this "docker run --rm -it -e DISPLAY=[YOUR-IP]:0.0 schmidtjan0/schach" (without the brackets)
#"-e" defines an environment variable (needed to connect to the Window Server)
#"-it" allows an interactive session (if you need console input)
#"--rm" will automatically remove the container after you exit