captap / Docker
Yakova's picture
Create Docker
55cad6d verified
raw
history blame
878 Bytes
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 " ]