koesan commited on
Commit
cd29fed
·
verified ·
1 Parent(s): c68246a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -1,7 +1,5 @@
1
  FROM python:3.10-slim
2
 
3
- WORKDIR /app
4
-
5
  # Sistem bağımlılıklarını kur
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
@@ -15,14 +13,15 @@ RUN mkdir -p /tmp/matplotlib && \
15
  ENV MPLCONFIGDIR=/tmp/matplotlib
16
  ENV FLASK_APP=app.py
17
 
18
- # Python paketlerini kur
 
 
 
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Uygulama dosyalarını kopyala
23
- COPY app.py .
24
- COPY templates/ templates/
25
- COPY static/ static/
26
 
27
  # Port
28
  EXPOSE 7860
 
1
  FROM python:3.10-slim
2
 
 
 
3
  # Sistem bağımlılıklarını kur
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
 
13
  ENV MPLCONFIGDIR=/tmp/matplotlib
14
  ENV FLASK_APP=app.py
15
 
16
+ # Çalışma dizini
17
+ WORKDIR /app
18
+
19
+ # Requirements kopyala ve kur
20
  COPY requirements.txt .
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
+ # Tüm uygulama dosyalarını kopyala
24
+ COPY . .
 
 
25
 
26
  # Port
27
  EXPOSE 7860