Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
|
@@ -18,15 +18,12 @@ COPY requirements.txt ./
|
|
| 18 |
# Install Python dependencies
|
| 19 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 20 |
|
| 21 |
-
# Copy application files
|
| 22 |
COPY . ./
|
| 23 |
|
| 24 |
-
# Create .streamlit directory if it doesn't exist
|
| 25 |
RUN mkdir -p .streamlit
|
| 26 |
|
| 27 |
-
# Copy streamlit config if it exists
|
| 28 |
-
COPY .streamlit/config.toml .streamlit/ 2>/dev/null || :
|
| 29 |
-
|
| 30 |
# Expose the port Streamlit runs on
|
| 31 |
EXPOSE 8501
|
| 32 |
|
|
|
|
| 18 |
# Install Python dependencies
|
| 19 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 20 |
|
| 21 |
+
# Copy application files (this will copy everything including .streamlit if it exists)
|
| 22 |
COPY . ./
|
| 23 |
|
| 24 |
+
# Create .streamlit directory if it doesn't exist and set up default config
|
| 25 |
RUN mkdir -p .streamlit
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Expose the port Streamlit runs on
|
| 28 |
EXPOSE 8501
|
| 29 |
|