Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -7,8 +7,8 @@ WORKDIR /app
|
|
7 |
# Copy application files into the container
|
8 |
COPY . /app
|
9 |
|
10 |
-
# Create and set permissions for the uploads
|
11 |
-
RUN mkdir -p /app/uploads /app/.cache
|
12 |
|
13 |
# Set environment variable for the cache directory
|
14 |
ENV XDG_CACHE_HOME=/app/.cache
|
@@ -23,4 +23,4 @@ RUN apt-get update && apt-get install -y \
|
|
23 |
EXPOSE 7860
|
24 |
|
25 |
# Define the entrypoint for the container with Gunicorn
|
26 |
-
CMD ["gunicorn", "-b", "0.0.0.0:7860", "-w", "4", "-k", "gevent", "--timeout", "300", "app:app"]
|
|
|
7 |
# Copy application files into the container
|
8 |
COPY . /app
|
9 |
|
10 |
+
# Create and set permissions for the uploads and cache directories
|
11 |
+
RUN mkdir -p /app/uploads /app/.cache && chmod 777 /app/uploads /app/.cache
|
12 |
|
13 |
# Set environment variable for the cache directory
|
14 |
ENV XDG_CACHE_HOME=/app/.cache
|
|
|
23 |
EXPOSE 7860
|
24 |
|
25 |
# Define the entrypoint for the container with Gunicorn
|
26 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "-w", "4", "-k", "gevent", "--timeout", "300", "app:app"]
|