Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -9,6 +9,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
# Set working directory
|
| 10 |
WORKDIR /app
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# Copy requirements first to leverage Docker cache
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
|
@@ -22,4 +28,4 @@ COPY . .
|
|
| 22 |
EXPOSE 8501
|
| 23 |
|
| 24 |
# Command to run the application
|
| 25 |
-
CMD ["streamlit", "run", "app.py", "--server.address", "0.0.0.0"]
|
|
|
|
| 9 |
# Set working directory
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
+
# Create a directory for Triton cache with proper permissions
|
| 13 |
+
RUN mkdir -p /app/.triton && chmod 777 /app/.triton
|
| 14 |
+
|
| 15 |
+
# Set environment variable to use the custom Triton cache directory
|
| 16 |
+
ENV TRITON_CACHE_DIR=/app/.triton
|
| 17 |
+
|
| 18 |
# Copy requirements first to leverage Docker cache
|
| 19 |
COPY requirements.txt .
|
| 20 |
|
|
|
|
| 28 |
EXPOSE 8501
|
| 29 |
|
| 30 |
# Command to run the application
|
| 31 |
+
CMD ["streamlit", "run", "app.py", "--server.address", "0.0.0.0"]
|