Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -32,7 +32,7 @@ RUN apt-get update && \
|
|
| 32 |
# Install Fastlane
|
| 33 |
RUN curl -sL https://dl.bintray.com/fastlane/fastlane/install | bash
|
| 34 |
|
| 35 |
-
# Create directories
|
| 36 |
RUN mkdir -p /app/icons /app/builds && \
|
| 37 |
chmod -R 777 /app/icons /app/builds
|
| 38 |
|
|
@@ -45,6 +45,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 45 |
# Expose the port the app will run on
|
| 46 |
EXPOSE 8000
|
| 47 |
|
|
|
|
|
|
|
|
|
|
| 48 |
# Start the FastAPI app
|
| 49 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 50 |
|
|
@@ -52,3 +55,4 @@ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
| 52 |
|
| 53 |
|
| 54 |
|
|
|
|
|
|
| 32 |
# Install Fastlane
|
| 33 |
RUN curl -sL https://dl.bintray.com/fastlane/fastlane/install | bash
|
| 34 |
|
| 35 |
+
# Create directories with write permissions
|
| 36 |
RUN mkdir -p /app/icons /app/builds && \
|
| 37 |
chmod -R 777 /app/icons /app/builds
|
| 38 |
|
|
|
|
| 45 |
# Expose the port the app will run on
|
| 46 |
EXPOSE 8000
|
| 47 |
|
| 48 |
+
# Run the app under root to avoid permission issues in the app folder
|
| 49 |
+
USER root
|
| 50 |
+
|
| 51 |
# Start the FastAPI app
|
| 52 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 53 |
|
|
|
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
+
|