Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +29 -0
Dockerfile
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use official TensorFlow image
|
2 |
+
FROM tensorflow/tensorflow:latest
|
3 |
+
|
4 |
+
# Set working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Install system dependencies
|
8 |
+
RUN apt-get update && apt-get install -y \
|
9 |
+
python3-pip \
|
10 |
+
curl && \
|
11 |
+
rm -rf /var/lib/apt/lists/*
|
12 |
+
|
13 |
+
# Copy all project files
|
14 |
+
COPY . /app
|
15 |
+
|
16 |
+
# Install Python dependencies
|
17 |
+
RUN pip install --no-cache-dir \
|
18 |
+
numpy \
|
19 |
+
scikit-learn \
|
20 |
+
tensorflow \
|
21 |
+
keras \
|
22 |
+
pillow \
|
23 |
+
streamlit
|
24 |
+
|
25 |
+
# Expose Streamlit default port
|
26 |
+
EXPOSE 8501
|
27 |
+
|
28 |
+
# Run the Streamlit app
|
29 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|