Argiris Deligiannidis 94ef35d6de
All checks were successful
continuous-integration/drone/push Build is passing
update image
2024-02-02 12:19:56 +02:00

16 lines
655 B
Docker

FROM amd64/alpine:latest
ARG PYTHON_VERSION=3.11.7
ARG PYTHON_URL=https://www.python.org/ftp/python/${PYTHON_VERSION}/python-3.11.7.exe
ENV WINEDEBUG=fixme-all
RUN \
apk -U add wine python3 py3-pip python3-dev gfortran build-base py3-numpy python3-tkinter libgfortran libquadmath libgcc gnutls && \
for i in core dev exe lib path pip tcltk tools; do \
wget -O "/tmp/python_$i.msi" -c "https://www.python.org/ftp/python/${PYTHON_VERSION}/win32/$i.msi" ; \
wine msiexec /i "/tmp/python_$i.msi" /qb TARGETDIR=C:/python && \
rm "/tmp/python_$i.msi" ; \
done && \
wine c:/python/python.exe -m pip install pyinstaller && \
mkdir -p /src /out