Create Docker
Browse files
Docker
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11-slim
|
2 |
+
|
3 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
+
ENV WINEPREFIX=/root/.wine
|
5 |
+
ENV WINEARCH=win64
|
6 |
+
|
7 |
+
# Add i386 architecture & install Wine + Python deps
|
8 |
+
RUN dpkg --add-architecture i386 && apt update && \
|
9 |
+
apt install -y \
|
10 |
+
wine64 wine32 winetricks wget cabextract curl \
|
11 |
+
fonts-liberation ttf-mscorefonts-installer \
|
12 |
+
git unzip && \
|
13 |
+
rm -rf /var/lib/apt/lists/*
|
14 |
+
|
15 |
+
# Install required Wine tricks for CapCut (even if we don’t run GUI)
|
16 |
+
RUN winetricks --self-update && \
|
17 |
+
winetricks vcrun2019 corefonts
|
18 |
+
|
19 |
+
# Setup CapCut folder
|
20 |
+
WORKDIR /app
|
21 |
+
COPY . /app
|
22 |
+
|
23 |
+
# Install pyJianYingDraft
|
24 |
+
RUN pip install pyJianYingDraft
|
25 |
+
|
26 |
+
# Download CapCut installer if needed
|
27 |
+
RUN wget -O /app/CapCut_Installer.exe "https://example.com/CapCut_Installer.exe"
|
28 |
+
|
29 |
+
# Optional: run installer in background
|
30 |
+
# RUN wine start /wait /app/CapCut_Installer.exe /silent || true
|
31 |
+
|
32 |
+
|
33 |
+
CMD [ "python3 " ]
|