Spaces:
Runtime error
Runtime error
Update src dan requirements supaya kedeteksi
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -4,11 +4,12 @@ FROM python:3.10-slim
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Salin
|
| 8 |
-
COPY . /app
|
| 9 |
-
|
| 10 |
-
# Install dependencies dari requirements.txt
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
# Jalankan Streamlit
|
| 14 |
-
CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "7860"]
|
|
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Salin dan install dependencies
|
| 8 |
+
COPY requirements.txt /app/
|
|
|
|
|
|
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
+
# Salin seluruh aplikasi ke dalam container
|
| 12 |
+
COPY src /app/src
|
| 13 |
+
|
| 14 |
# Jalankan Streamlit
|
| 15 |
+
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port", "7860"]
|