Spaces:
Runtime error
Runtime error
Boning c
commited on
Create Dockerfile
Browse files- Dockerfile +25 -0
Dockerfile
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Base image with system deps
|
| 2 |
+
FROM ubuntu:22.04
|
| 3 |
+
|
| 4 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
+
|
| 6 |
+
# Install X server, window manager, VNC & web client
|
| 7 |
+
RUN apt-get update && \
|
| 8 |
+
apt-get install -y --no-install-recommends \
|
| 9 |
+
xvfb fluxbox x11vnc \
|
| 10 |
+
websockify novnc python3-pip && \
|
| 11 |
+
rm -rf /var/lib/apt/lists/*
|
| 12 |
+
|
| 13 |
+
# Copy startup script + app
|
| 14 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 15 |
+
COPY requirements.txt /requirements.txt
|
| 16 |
+
COPY app.py /app.py
|
| 17 |
+
RUN chmod +x /entrypoint.sh
|
| 18 |
+
|
| 19 |
+
# Python deps
|
| 20 |
+
RUN pip3 install --no-cache-dir -r /requirements.txt
|
| 21 |
+
|
| 22 |
+
# Expose Gradio (7860) and noVNC (6080)
|
| 23 |
+
EXPOSE 7860 6080
|
| 24 |
+
|
| 25 |
+
ENTRYPOINT ["/entrypoint.sh"]
|