Spaces:
Runtime error
Runtime error
LE Quoc Dat
commited on
Commit
•
087f71f
1
Parent(s):
d3e1bea
update
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -10,11 +10,11 @@ COPY . /app
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
|
|
|
|
|
|
13 |
# Make port 7860 available to the world outside this container
|
14 |
EXPOSE 7860
|
15 |
|
16 |
-
# Define environment variable
|
17 |
-
ENV NAME World
|
18 |
-
|
19 |
# Run app.py when the container launches
|
20 |
CMD ["python", "app.py"]
|
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Create the uploads directory with appropriate permissions
|
14 |
+
RUN mkdir -p /tmp/uploads && chmod 777 /tmp/uploads
|
15 |
+
|
16 |
# Make port 7860 available to the world outside this container
|
17 |
EXPOSE 7860
|
18 |
|
|
|
|
|
|
|
19 |
# Run app.py when the container launches
|
20 |
CMD ["python", "app.py"]
|