Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -4,9 +4,6 @@ FROM python:3.11-slim
|
|
4 |
# Set working directory inside the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Create the saved_models directory in /cache and set permissions
|
8 |
-
RUN mkdir -p /cache/saved_models && chmod -R 755 /cache/saved_models
|
9 |
-
|
10 |
# Copy requirements.txt to the working directory
|
11 |
COPY requirements.txt .
|
12 |
|
@@ -23,7 +20,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
23 |
# Copy the entire application code and datasets to the container
|
24 |
COPY . .
|
25 |
|
26 |
-
#
|
|
|
|
|
|
|
27 |
EXPOSE 7860
|
28 |
|
29 |
# Command to run the Flask app
|
|
|
4 |
# Set working directory inside the container
|
5 |
WORKDIR /app
|
6 |
|
|
|
|
|
|
|
7 |
# Copy requirements.txt to the working directory
|
8 |
COPY requirements.txt .
|
9 |
|
|
|
20 |
# Copy the entire application code and datasets to the container
|
21 |
COPY . .
|
22 |
|
23 |
+
# Ensure the container runs as root (temporary for debugging)
|
24 |
+
USER root
|
25 |
+
|
26 |
+
# Expose the port your Flask app will run on
|
27 |
EXPOSE 7860
|
28 |
|
29 |
# Command to run the Flask app
|