Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
@@ -3,7 +3,7 @@ FROM python:3.9-slim
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
# Set matplotlib config directory to a writable location
|
6 |
-
ENV MPLCONFIGDIR=/tmp
|
7 |
|
8 |
# Install system dependencies
|
9 |
RUN apt-get update && \
|
@@ -20,15 +20,13 @@ RUN apt-get update && \
|
|
20 |
COPY requirements.txt .
|
21 |
RUN pip install --no-cache-dir -r requirements.txt
|
22 |
|
23 |
-
#
|
24 |
-
RUN echo "current_example = 'selector'" > startup.py
|
25 |
-
|
26 |
-
# Copy application file
|
27 |
COPY app.py .
|
28 |
|
29 |
-
#
|
|
|
|
|
30 |
RUN chmod 777 /app
|
31 |
-
RUN chmod 777 /app/startup.py
|
32 |
|
33 |
# Expose port for Gradio
|
34 |
EXPOSE 7860
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
# Set matplotlib config directory to a writable location
|
6 |
+
ENV MPLCONFIGDIR=/tmp
|
7 |
|
8 |
# Install system dependencies
|
9 |
RUN apt-get update && \
|
|
|
20 |
COPY requirements.txt .
|
21 |
RUN pip install --no-cache-dir -r requirements.txt
|
22 |
|
23 |
+
# Copy application files
|
|
|
|
|
|
|
24 |
COPY app.py .
|
25 |
|
26 |
+
# Make sure current_app.txt exists (starts with selector)
|
27 |
+
RUN echo "selector" > current_app.txt
|
28 |
+
RUN chmod 777 current_app.txt
|
29 |
RUN chmod 777 /app
|
|
|
30 |
|
31 |
# Expose port for Gradio
|
32 |
EXPOSE 7860
|