Spaces:
Runtime error
Runtime error
YosrAbbassi
commited on
Commit
•
8b750e8
1
Parent(s):
9cc680f
Update Dockerfile
Browse files- Dockerfile +7 -17
Dockerfile
CHANGED
@@ -1,30 +1,20 @@
|
|
1 |
-
# Use the official Python image as
|
2 |
-
FROM python:3.8
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Install system dependencies required by fitz
|
8 |
-
RUN apt-get update && apt-get install -y \
|
9 |
-
libx11-6 \
|
10 |
-
libxcb1 \
|
11 |
-
libxext6 \
|
12 |
-
libxrender1 \
|
13 |
-
libxrandr2 \
|
14 |
-
libjpeg-dev \
|
15 |
-
libopenjp2-7-dev \
|
16 |
-
zlib1g-dev
|
17 |
-
|
18 |
# Copy the requirements file into the container at /app
|
19 |
COPY requirements.txt .
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
# Install any needed packages specified in requirements.txt
|
24 |
RUN pip install --no-cache-dir -r requirements.txt
|
25 |
|
|
|
|
|
|
|
26 |
# Copy the current directory contents into the container at /app
|
27 |
COPY . .
|
28 |
|
29 |
-
#
|
30 |
CMD ["python", "app.py"]
|
|
|
1 |
+
# Use the official Python image as base image
|
2 |
+
FROM python:3.8
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# Copy the requirements file into the container at /app
|
8 |
COPY requirements.txt .
|
9 |
|
10 |
+
# Install any needed dependencies specified in requirements.txt
|
|
|
|
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Upgrade Gradio to the specific version
|
14 |
+
RUN pip install --no-cache-dir gradio==1.7.7
|
15 |
+
|
16 |
# Copy the current directory contents into the container at /app
|
17 |
COPY . .
|
18 |
|
19 |
+
# Run app.py when the container launches
|
20 |
CMD ["python", "app.py"]
|