Add Streamlit app files
Browse files- Dockerfile +15 -11
Dockerfile
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
# Copy
|
| 7 |
-
COPY
|
| 8 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
ENV PORT=7860
|
| 15 |
-
|
| 16 |
-
# Expose port
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use official Python image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy app files
|
| 8 |
+
COPY . /app
|
|
|
|
| 9 |
|
| 10 |
+
# Install required Python packages
|
| 11 |
+
RUN pip install --no-cache-dir \
|
| 12 |
+
streamlit \
|
| 13 |
+
pandas \
|
| 14 |
+
scikit-learn \
|
| 15 |
+
huggingface_hub
|
| 16 |
|
| 17 |
+
# Streamlit port
|
|
|
|
|
|
|
|
|
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
+
# Disable usage tracking
|
| 21 |
+
ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
|
| 22 |
+
|
| 23 |
+
# Start the Streamlit app
|
| 24 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|