Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
@@ -6,8 +6,11 @@ WORKDIR /app
|
|
6 |
RUN apt-get update && \
|
7 |
apt-get install -y --no-install-recommends \
|
8 |
build-essential \
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
11 |
rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
# Copy requirements first for better layer caching
|
@@ -17,7 +20,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
17 |
# Copy application files
|
18 |
COPY . .
|
19 |
|
20 |
-
#
|
|
|
|
|
|
|
21 |
EXPOSE 8501
|
22 |
|
23 |
# Command to run the application
|
|
|
6 |
RUN apt-get update && \
|
7 |
apt-get install -y --no-install-recommends \
|
8 |
build-essential \
|
9 |
+
ffmpeg \
|
10 |
+
libsm6 \
|
11 |
+
libxext6 \
|
12 |
+
libgl1-mesa-glx \
|
13 |
+
&& apt-get clean && \
|
14 |
rm -rf /var/lib/apt/lists/*
|
15 |
|
16 |
# Copy requirements first for better layer caching
|
|
|
20 |
# Copy application files
|
21 |
COPY . .
|
22 |
|
23 |
+
# Create directory for examples
|
24 |
+
RUN mkdir -p gradio_examples && touch gradio_examples/__init__.py
|
25 |
+
|
26 |
+
# Expose port for Streamlit
|
27 |
EXPOSE 8501
|
28 |
|
29 |
# Command to run the application
|