docker-python-windows/Dockerfile
Paolo Asperti 1aad5c7e1f
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
initial release
2023-01-30 15:48:53 +01:00

16 lines
529 B
Docker

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