docker-python-windows/Dockerfile

16 lines
529 B
Docker
Raw Normal View History

2023-01-30 14:37:48 +00:00
FROM i386/alpine:3.17
ARG PYTHON_VERSION=3.11.1
ARG PYTHON_URL=https://www.python.org/ftp/python/${PYTHON_VERSION}/python-3.11.1.exe
ENV WINEDEBUG=fixme-all
RUN \
apk -U add wine && \
for i in core dev exe lib path pip ; 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