adtyalan commited on
Commit
7704b68
·
verified ·
1 Parent(s): 04faf46

Update src dan requirements supaya kedeteksi

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -4,11 +4,12 @@ FROM python:3.10-slim
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Salin file aplikasi ke dalam container
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"]