Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
|
@@ -2,22 +2,21 @@ FROM python:3.13-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
#
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
build-essential \
|
| 8 |
curl \
|
| 9 |
-
software-properties-common \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
|
|
|
| 12 |
COPY requirements.txt .
|
| 13 |
-
|
| 14 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
-
|
| 17 |
COPY dashboard/ ./dashboard/
|
| 18 |
|
| 19 |
-
# Expose port
|
| 20 |
EXPOSE 8501
|
| 21 |
|
| 22 |
-
#
|
| 23 |
ENTRYPOINT ["streamlit", "run", "dashboard/dashboard.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Hanya install tools yang benar-benar esensial
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
build-essential \
|
| 8 |
curl \
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
+
# Copy requirements dan install library
|
| 12 |
COPY requirements.txt .
|
|
|
|
| 13 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
+
# Copy folder dashboard kamu
|
| 16 |
COPY dashboard/ ./dashboard/
|
| 17 |
|
| 18 |
+
# Expose port Streamlit
|
| 19 |
EXPOSE 8501
|
| 20 |
|
| 21 |
+
# Jalankan dashboard
|
| 22 |
ENTRYPOINT ["streamlit", "run", "dashboard/dashboard.py", "--server.port=8501", "--server.address=0.0.0.0"]
|