Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -15,8 +15,8 @@ WORKDIR /app
|
|
| 15 |
COPY requirements.txt .
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
-
# Copy the app
|
| 19 |
-
COPY src/streamlit_app.py .
|
| 20 |
|
| 21 |
# Create cache directory with write permissions
|
| 22 |
RUN mkdir -p /tmp/cache && chmod -R 777 /tmp/cache
|
|
@@ -27,5 +27,5 @@ EXPOSE 8501
|
|
| 27 |
# Set environment variable for Hugging Face cache
|
| 28 |
ENV HUGGINGFACE_HUB_CACHE=/tmp/cache
|
| 29 |
|
| 30 |
-
# Run Streamlit with increased upload size limit (1GB)
|
| 31 |
-
CMD ["streamlit", "run", "
|
|
|
|
| 15 |
COPY requirements.txt .
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
+
# Copy the Streamlit app file (in src directory)
|
| 19 |
+
COPY src/streamlit_app.py ./src/streamlit_app.py
|
| 20 |
|
| 21 |
# Create cache directory with write permissions
|
| 22 |
RUN mkdir -p /tmp/cache && chmod -R 777 /tmp/cache
|
|
|
|
| 27 |
# Set environment variable for Hugging Face cache
|
| 28 |
ENV HUGGINGFACE_HUB_CACHE=/tmp/cache
|
| 29 |
|
| 30 |
+
# Run Streamlit with the correct file path and increased upload size limit (1GB)
|
| 31 |
+
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.maxUploadSize=1000", "--server.port=8501"]
|