Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
libgomp1 \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
# Copy requirements first
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
# Install Python dependencies
|
|
@@ -21,9 +21,8 @@ RUN pip install --upgrade pip && \
|
|
| 21 |
# Copy the rest of the application
|
| 22 |
COPY . .
|
| 23 |
|
| 24 |
-
# Environment variables
|
| 25 |
ENV STREAMLIT_SERVER_PORT=7860
|
| 26 |
-
ENV HUGGINGFACEHUB_API_TOKEN=your_huggingface_token_here
|
| 27 |
|
| 28 |
EXPOSE 7860
|
| 29 |
|
|
|
|
| 9 |
libgomp1 \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# Copy requirements first
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
# Install Python dependencies
|
|
|
|
| 21 |
# Copy the rest of the application
|
| 22 |
COPY . .
|
| 23 |
|
| 24 |
+
# Environment variables (token will be set in Hugging Face Spaces secrets)
|
| 25 |
ENV STREAMLIT_SERVER_PORT=7860
|
|
|
|
| 26 |
|
| 27 |
EXPOSE 7860
|
| 28 |
|