File size: 878 Bytes
55cad6d |
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 |
FROM python:3.11-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV WINEPREFIX=/root/.wine
ENV WINEARCH=win64
# Add i386 architecture & install Wine + Python deps
RUN dpkg --add-architecture i386 && apt update && \
apt install -y \
wine64 wine32 winetricks wget cabextract curl \
fonts-liberation ttf-mscorefonts-installer \
git unzip && \
rm -rf /var/lib/apt/lists/*
# Install required Wine tricks for CapCut (even if we don’t run GUI)
RUN winetricks --self-update && \
winetricks vcrun2019 corefonts
# Setup CapCut folder
WORKDIR /app
COPY . /app
# Install pyJianYingDraft
RUN pip install pyJianYingDraft
# Download CapCut installer if needed
RUN wget -O /app/CapCut_Installer.exe "https://example.com/CapCut_Installer.exe"
# Optional: run installer in background
# RUN wine start /wait /app/CapCut_Installer.exe /silent || true
CMD [ "python3 " ]
|