-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (45 loc) · 1.79 KB
/
Copy pathDockerfile
File metadata and controls
52 lines (45 loc) · 1.79 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ── Base ──────────────────────────────────────────────────────────
FROM node:20-bookworm-slim
# ── Enable 32-bit architecture (required by Wine) ─────────────────
RUN dpkg --add-architecture i386
# ── System dependencies ───────────────────────────────────────────
RUN apt-get update && apt-get install -y \
xvfb \
x11-utils \
xdotool \
ffmpeg \
pulseaudio \
pulseaudio-utils \
wine \
wine32 \
wine64 \
chromium \
fonts-liberation \
fontconfig \
wget \
curl \
ca-certificates \
cabextract \
unzip \
--no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# ── Install winetricks manually from GitHub ───────────────────────
RUN wget -q https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
-O /usr/local/bin/winetricks \
&& chmod +x /usr/local/bin/winetricks
# ── Environment ───────────────────────────────────────────────────
ENV DISPLAY=:99
ENV PULSE_SERVER=unix:/tmp/pulse/native
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV WINEPREFIX=/root/.wine
ENV WINEDEBUG=-all
# ── App ───────────────────────────────────────────────────────────
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN chmod +x /app/start.sh
EXPOSE 8081
CMD ["/app/start.sh"]