Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -18,6 +18,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 18 |
# Copy the rest of the application code into the container
|
| 19 |
COPY . .
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
# Hugging Face Spaces runs as user with UID 1000
|
| 22 |
# Grant ownership of /app so SQLite DB can be created and written
|
| 23 |
RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
|
|
@@ -31,5 +34,5 @@ ENV PYTHONUNBUFFERED=1
|
|
| 31 |
ENV HOST=0.0.0.0
|
| 32 |
ENV PORT=7860
|
| 33 |
|
| 34 |
-
#
|
| 35 |
-
CMD ["
|
|
|
|
| 18 |
# Copy the rest of the application code into the container
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
+
# Make start script executable
|
| 22 |
+
RUN chmod +x start.sh
|
| 23 |
+
|
| 24 |
# Hugging Face Spaces runs as user with UID 1000
|
| 25 |
# Grant ownership of /app so SQLite DB can be created and written
|
| 26 |
RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
|
|
|
|
| 34 |
ENV HOST=0.0.0.0
|
| 35 |
ENV PORT=7860
|
| 36 |
|
| 37 |
+
# Use startup script for better diagnostics
|
| 38 |
+
CMD ["./start.sh"]
|