Spaces:
Runtime error
Runtime error
Update dockerfile
Browse files- dockerfile +25 -8
dockerfile
CHANGED
|
@@ -1,18 +1,35 @@
|
|
| 1 |
-
#
|
| 2 |
-
FROM
|
| 3 |
|
| 4 |
-
# Install
|
| 5 |
RUN apt-get update && \
|
| 6 |
-
apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
# Install
|
| 9 |
-
|
|
|
|
| 10 |
|
| 11 |
-
# Set
|
| 12 |
WORKDIR /app
|
|
|
|
|
|
|
| 13 |
COPY . /app
|
| 14 |
|
| 15 |
-
# Expose the port
|
| 16 |
EXPOSE 7860
|
| 17 |
|
| 18 |
# Run the Gradio app
|
|
|
|
| 1 |
+
# Use the official Python 3.10 image
|
| 2 |
+
FROM python:3.10
|
| 3 |
|
| 4 |
+
# Install system dependencies, including OpenSSL 1.1 and others
|
| 5 |
RUN apt-get update && \
|
| 6 |
+
apt-get install -y \
|
| 7 |
+
libssl1.1 \
|
| 8 |
+
libssl-dev \
|
| 9 |
+
git \
|
| 10 |
+
git-lfs \
|
| 11 |
+
ffmpeg \
|
| 12 |
+
libsm6 \
|
| 13 |
+
libxext6 \
|
| 14 |
+
cmake \
|
| 15 |
+
rsync \
|
| 16 |
+
libgl1-mesa-glx \
|
| 17 |
+
curl \
|
| 18 |
+
nodejs \
|
| 19 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 20 |
+
&& git lfs install
|
| 21 |
|
| 22 |
+
# Install necessary Python packages from requirements.txt
|
| 23 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 24 |
+
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
| 25 |
|
| 26 |
+
# Set the working directory to /app
|
| 27 |
WORKDIR /app
|
| 28 |
+
|
| 29 |
+
# Copy the rest of the application files into the container
|
| 30 |
COPY . /app
|
| 31 |
|
| 32 |
+
# Expose the port the app will run on
|
| 33 |
EXPOSE 7860
|
| 34 |
|
| 35 |
# Run the Gradio app
|