-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 896 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
28
29
30
31
32
33
34
ARG PYWINE_VERSION=3.10
FROM tobix/pywine:${PYWINE_VERSION}
WORKDIR /usr/app
RUN apt-get update
ARG PYTHON_VERSION=3.10.8
RUN apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev \
libnss3-dev libssl-dev libreadline-dev libffi-dev wget python3-dev \
python3-pip -y
RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
RUN tar -xf Python-${PYTHON_VERSION}.tgz
RUN ./Python-${PYTHON_VERSION}/configure --enable-optimizations --enable-shared
RUN make altinstall
RUN make install
RUN cp /usr/local/lib/libpython* /usr/lib/
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install pyinstaller
# Windows
RUN wine python.exe -m pip install --upgrade pip
RUN wine python.exe -m pip install pyinstaller
COPY entrypoint.sh ./
RUN chmod +x entrypoint.sh
COPY build.py ./
RUN chmod +x build.py
ENTRYPOINT ["./entrypoint.sh"]