forked from lorserker/ben
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 1.19 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
27
28
29
30
31
32
33
34
35
36
# start with standard ubuntu:22.04
# TODO: use multiple stage build for libdds.so & python dependance
FROM docker.io/ubuntu:jammy
# libdds-dev contains libdds.so
RUN apt-get update && \
apt-get -y install libboost-thread-dev libdds-dev python3.10 python-is-python3 python3-pip && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
apt-get clean
# https://linuxhint.com/install-use-mono-ubuntu-22-04/
# mono is needed for EPBot, skipped in container
#RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official-stable.list
#RUN apt-get update && \
# DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends mono-complete
ADD requirements.txt /app/
WORKDIR /app
RUN pip install -r requirements.txt
COPY src/frontend /app/frontend/
COPY src/*.py /app/
ADD src/bidding /app/bidding/
ADD src/nn /app/nn/
ADD src/ddsolver /app/ddsolver/
COPY "UCBC*2024/Models/" "/app/Models/"
COPY "UCBC*2024/Conf/UCBC2024.conf" "/app/config/default.conf"
ADD start_ben_all.sh /app/
# Grant execution permissions to the script
RUN chmod +x /app/start_ben_all.sh
EXPOSE 8080 4443
CMD ./start_ben_all.sh