Spaces:
Runtime error
Runtime error
circulartext
commited on
Commit
•
884598d
1
Parent(s):
06cf2a2
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
# Use your base Docker image from Docker Hub
|
2 |
FROM circulartextapp/circulartextai
|
3 |
|
4 |
-
|
5 |
# Set the working directory
|
6 |
WORKDIR /code
|
7 |
|
@@ -12,5 +11,8 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
12 |
# Copy the rest of your application files
|
13 |
COPY . .
|
14 |
|
|
|
|
|
|
|
15 |
# Specify the command to run your application
|
16 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
# Use your base Docker image from Docker Hub
|
2 |
FROM circulartextapp/circulartextai
|
3 |
|
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /code
|
6 |
|
|
|
11 |
# Copy the rest of your application files
|
12 |
COPY . .
|
13 |
|
14 |
+
# Create a directory for storing files and set permissions
|
15 |
+
RUN mkdir /code/files && chmod 777 /code/files
|
16 |
+
|
17 |
# Specify the command to run your application
|
18 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|