-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (47 loc) · 2 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:22.04
# FROM python:3.10.13-alpine3.18
# FROM alpine:3.18
# RUN apk add --no-cache mysql-client
# RUN apk add --no-cache python3 py3-pip
#ARG BIND_ADDRESS
#ARG CERT
#ARG CERT_KEY
#RUN echo ${CERT_KEY}
WORKDIR /home
# alpine
# RUN apk add libffi-dev
# RUN pip3 install --upgrade pip && pip3 install --root-user-action=ignore --no-cache-dir -r requirements.txt
# ubuntu
RUN apt-get -y update && apt-get -y upgrade && apt-get install -y software-properties-common gcc && \
apt install libssl-dev && apt-get -y install build-essential && apt install -y lsof
RUN add-apt-repository -y ppa:deadsnakes/ppa && \
apt-get install -y python3.10 python3-distutils python3-pip python3-apt python3.10-dev
# Build game server
RUN apt install -y openjdk-17-jdk
#RUN cd EscapeFromMassacre/
#RUN ./build_game_server.sh -P x86_64-linux
#RUN cd ..
# RUN apt-get -y update && apt-get -y install software-properties-common && apt-get -y install build-essential && add-apt-repository ppa:deadsnakes/ppa && apt-get install -y python3.10-dev python3-distutils python3-pip python3-apt
# RUN pip install --no-cache-dir -r requirements.txt
COPY webtransport-py/requirements.txt ./webtransport-py/requirements.txt
RUN pip install -r webtransport-py/requirements.txt
COPY . .
RUN ./build.sh
# CMD python3.10 main.py $BIND_ADDRESS $CERT $CERT_KEY
# CMD python3.10 main.py certificate/fullchain.pem certificate/privkey.pem
# CMD ["python3.10", "main.py", "certificate/fullchain.pem", "certificate/privkey.pem"]
# Pass arguments to run.sh
#CMD ./run.sh ${CERT} ${CERT_KEY}
CMD ./run.sh
#CMD ["./run.sh"]
#CMD ["/bin/bash", "-c", "run"]
EXPOSE 4433/udp
EXPOSE 5001/tcp
# COPY .env.local .env.local
# COPY webtransport-py webtransport-py
# COPY EscapeFromMassacre EscapeFromMassacre
# COPY /etc/letsencrypt/live/look.ovh/fullchain.pem fullchain.pem
# COPY /etc/letsencrypt/live/look.ovh/privkey.pem privkey.pem
# RUN ./install.sh
# RUN chmod +x delete-zombie-chrome.sh
# ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar trader-app-0.0.1-SNAPSHOT.jar"]