Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -19,11 +19,11 @@ COPY ./app.py /app/app.py
|
|
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
|
29 |
-
CMD ["python", "app.py"]
|
|
|
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 and /app
|
23 |
+
RUN chmod 1777 /tmp && chmod -R 777 /app
|
24 |
|
25 |
# Expose port 7860 for the Gradio application
|
26 |
EXPOSE 7860
|
27 |
|
28 |
# Command to run the Gradio app when the container starts
|
29 |
+
CMD ["python", "app.py"]
|