Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -10,13 +10,19 @@ COPY ./requirements.txt /app/requirements.txt
|
|
| 10 |
# Install the Python dependencies
|
| 11 |
RUN pip install -r /app/requirements.txt
|
| 12 |
|
| 13 |
-
#
|
|
|
|
|
|
|
|
|
|
| 14 |
COPY ./app.py /app/app.py
|
| 15 |
|
| 16 |
# Copy the model and key components into the container
|
| 17 |
COPY ./rf_key_components.pkl /app/rf_key_components.pkl
|
| 18 |
|
| 19 |
-
#
|
|
|
|
|
|
|
|
|
|
| 20 |
EXPOSE 7860
|
| 21 |
|
| 22 |
# Command to run the Gradio app when the container starts
|
|
|
|
| 10 |
# Install the Python dependencies
|
| 11 |
RUN pip install -r /app/requirements.txt
|
| 12 |
|
| 13 |
+
# Set MPLCONFIGDIR to /tmp
|
| 14 |
+
ENV MPLCONFIGDIR /tmp
|
| 15 |
+
|
| 16 |
+
# Copy your Gradio application code into the container
|
| 17 |
COPY ./app.py /app/app.py
|
| 18 |
|
| 19 |
# Copy the model and key components into the container
|
| 20 |
COPY ./rf_key_components.pkl /app/rf_key_components.pkl
|
| 21 |
|
| 22 |
+
# Set the correct permissions on /tmp
|
| 23 |
+
RUN chmod 1777 /tmp
|
| 24 |
+
|
| 25 |
+
# Expose port 7860 for the Gradio application
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
# Command to run the Gradio app when the container starts
|