srivatsavdamaraju commited on
Commit
ce5c352
·
verified ·
1 Parent(s): e8300cc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  FROM python:3.9
2
 
 
3
  # Set the working directory in the container
4
  WORKDIR /code
5
  # Copy the requirements file into the container at /app
@@ -16,4 +17,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
17
  # Copy the current directory contents into the container at /app
18
  COPY . .
 
 
19
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app" ]
 
1
  FROM python:3.9
2
 
3
+
4
  # Set the working directory in the container
5
  WORKDIR /code
6
  # Copy the requirements file into the container at /app
 
17
 
18
  # Copy the current directory contents into the container at /app
19
  COPY . .
20
+ # Create uploads directory if it doesn't exist and set permissions
21
+ RUN mkdir -p static/uploads && chmod -R 775 static/uploads
22
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app" ]