forked from lukasmonk/lucaschessR2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 781 Bytes
/
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
27
# Build with:
# docker build --network host . -t lucaschess
# Run With:
# docker run -it -e "DISPLAY=$DISPLAY" -v "$HOME/.Xauthority:/lucaschess/.Xauthority:ro" -v "$PWD/UserData:/lucaschess/UserData" --network host --rm lucaschess
FROM python:3.9-bullseye
WORKDIR /lucaschess/
ENV HOME=/lucaschess/
RUN apt-get update && \
apt-get install -y portaudio19-dev libqt5gui5 libpulse-mainloop-glib0 && \
rm -rf /var/lib/apt/lists/*
ADD requirements.txt ./
RUN pip install -r requirements.txt
ADD . .
RUN cd bin/_fastercode && chmod a+x ./linux64.sh && ./linux64.sh
RUN cd bin/OS/linux && chmod a+x ./RunEngines && ./RunEngines
RUN chmod a+x bin/LucasR.py
WORKDIR /lucaschess/bin/
# To debug problems with Qt, enable the following line:
# ENV QT_DEBUG_PLUGINS=1
CMD ./LucasR.py