Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -10
Dockerfile
CHANGED
@@ -1,17 +1,9 @@
|
|
1 |
FROM python:3.9-slim
|
2 |
-
|
3 |
-
# Set working directory
|
4 |
WORKDIR /app
|
5 |
-
|
6 |
-
|
7 |
COPY app.py /app
|
8 |
COPY requirements.txt /app
|
9 |
-
|
10 |
-
# Install required Python libraries
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
-
|
13 |
-
# Expose the default Gradio port
|
14 |
EXPOSE 7860
|
15 |
-
|
16 |
-
# Run the application
|
17 |
CMD ["python", "app.py"]
|
|
|
1 |
FROM python:3.9-slim
|
|
|
|
|
2 |
WORKDIR /app
|
3 |
+
ENV MPLCONFIGDIR=/tmp/.config/matplotlib
|
4 |
+
RUN mkdir -p $MPLCONFIGDIR
|
5 |
COPY app.py /app
|
6 |
COPY requirements.txt /app
|
|
|
|
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
8 |
EXPOSE 7860
|
|
|
|
|
9 |
CMD ["python", "app.py"]
|