sudo-soldier commited on
Commit
4c3687d
·
verified ·
1 Parent(s): b90440c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -35,6 +35,10 @@ RUN curl -sL https://dl.bintray.com/fastlane/fastlane/install | bash
35
  # Copy the FastAPI app files to the container
36
  COPY . /app
37
 
 
 
 
 
38
  # Install FastAPI and Uvicorn
39
  RUN pip install --no-cache-dir -r requirements.txt
40
 
@@ -42,6 +46,7 @@ RUN pip install --no-cache-dir -r requirements.txt
42
  EXPOSE 8000
43
 
44
  # Start the FastAPI app
45
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
46
 
47
 
 
35
  # Copy the FastAPI app files to the container
36
  COPY . /app
37
 
38
+ # Set permissions for the app directory
39
+ RUN mkdir -p /app/icons /app/builds && \
40
+ chmod -R 777 /app/icons /app/builds
41
+
42
  # Install FastAPI and Uvicorn
43
  RUN pip install --no-cache-dir -r requirements.txt
44
 
 
46
  EXPOSE 8000
47
 
48
  # Start the FastAPI app
49
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
50
+
51
 
52