Debug
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -15,8 +15,6 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
| 15 |
COPY main.py .
|
| 16 |
|
| 17 |
# --- Define Volumes ---
|
| 18 |
-
# This tells Docker to manage these directories as volumes if not explicitly mounted.
|
| 19 |
-
# Data written here will persist in anonymous volumes by default.
|
| 20 |
VOLUME /app/data
|
| 21 |
VOLUME /root/.duckdb
|
| 22 |
# --- End Define Volumes ---
|
|
@@ -30,6 +28,7 @@ EXPOSE 8080
|
|
| 30 |
ENV PYTHONUNBUFFERED=1
|
| 31 |
ENV UI_EXPECTED_PORT=8080
|
| 32 |
|
| 33 |
-
# Command to run the
|
| 34 |
-
#
|
| 35 |
-
|
|
|
|
|
|
| 15 |
COPY main.py .
|
| 16 |
|
| 17 |
# --- Define Volumes ---
|
|
|
|
|
|
|
| 18 |
VOLUME /app/data
|
| 19 |
VOLUME /root/.duckdb
|
| 20 |
# --- End Define Volumes ---
|
|
|
|
| 28 |
ENV PYTHONUNBUFFERED=1
|
| 29 |
ENV UI_EXPECTED_PORT=8080
|
| 30 |
|
| 31 |
+
# Command to run the application using Uvicorn
|
| 32 |
+
# Use sh -c to execute commands before starting uvicorn
|
| 33 |
+
# Explicitly set permissions on volume mount points just before app start
|
| 34 |
+
CMD ["sh", "-c", "chmod 777 /app/data /root/.duckdb && exec uvicorn main:app --host 0.0.0.0 --port 8000"]
|