-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathDockerfile
38 lines (31 loc) · 1.35 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
FROM tobix/wine:devel
LABEL org.opencontainers.image.authors="Tobias Gruetzmacher <[email protected]>"
ENV WINEDEBUG=-all
ENV WINEPREFIX=/opt/wineprefix
COPY wine-init.sh SHA256SUMS.txt keys.gpg /tmp/helper/
COPY mkuserwineprefix entrypoint.sh /opt/
# Prepare environment
RUN xvfb-run sh /tmp/helper/wine-init.sh
# renovate: datasource=github-tags depName=python/cpython versioning=pep440
ARG PYTHON_VERSION=3.13.1
# renovate: datasource=github-releases depName=upx/upx versioning=loose
ARG UPX_VERSION=4.2.4
RUN umask 0 && cd /tmp/helper && \
curl --fail-with-body -LOOO \
https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-amd64.exe{,.asc} \
https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-win64.zip \
&& \
gpgv --keyring ./keys.gpg python-${PYTHON_VERSION}-amd64.exe.asc python-${PYTHON_VERSION}-amd64.exe && \
sha256sum -c SHA256SUMS.txt && \
xvfb-run sh -c "\
wine python-${PYTHON_VERSION}-amd64.exe /quiet TargetDir=C:\\Python \
Include_doc=0 InstallAllUsers=1 PrependPath=1; \
wineserver -w" && \
unzip upx*.zip && \
mv -v upx*/upx.exe ${WINEPREFIX}/drive_c/windows/ && \
cd .. && rm -Rf helper
# Install some python software
RUN umask 0 && xvfb-run sh -c "\
wine pip install --no-warn-script-location pyinstaller; \
wineserver -w"
ENTRYPOINT ["/opt/entrypoint.sh"]