-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (42 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
53 lines (42 loc) · 1.29 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
53
FROM python:3.14-slim-bookworm
# Install system dependencies
RUN apt-get update && apt-get install -y \
wget \
curl \
gnupg2 \
software-properties-common \
xvfb \
x11vnc \
novnc \
supervisor \
net-tools \
lsb-release \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Install Wine (updated for Bookworm)
RUN dpkg --add-architecture i386 && \
mkdir -pm755 /etc/apt/keyrings && \
wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key && \
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources && \
apt-get update && \
apt-get install -y --install-recommends winehq-stable && \
rm -rf /var/lib/apt/lists/*
# Copy requirements file
COPY requirements.txt /tmp/requirements.txt
# Install Python packages from requirements
RUN pip install --no-cache-dir -r /tmp/requirements.txt || true
# Create working directory
WORKDIR /app
# Copy application code
COPY . /app/
# Set environment variables
ENV DISPLAY=:1
ENV PYTHONUNBUFFERED=1
ENV WINEPREFIX=/root/.wine
# Configure Wine
RUN winecfg || true
# Expose ports
EXPOSE 5900 6080 8000
# Make entrypoint script executable
RUN chmod +x /app/scripts/entrypoint.sh
CMD ["/app/scripts/entrypoint.sh"]