File size: 619 Bytes
148fe28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Base image with system deps
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Install X server, window manager, VNC & web client
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
      xvfb fluxbox x11vnc \
      websockify novnc python3-pip && \
    rm -rf /var/lib/apt/lists/*

# Copy startup script + app
COPY entrypoint.sh /entrypoint.sh
COPY requirements.txt /requirements.txt
COPY app.py /app.py
RUN chmod +x /entrypoint.sh

# Python deps
RUN pip3 install --no-cache-dir -r /requirements.txt

# Expose Gradio (7860) and noVNC (6080)
EXPOSE 7860 6080

ENTRYPOINT ["/entrypoint.sh"]