File size: 604 Bytes
f4f1195
 
 
 
 
 
 
3ff5184
 
 
 
 
 
c68246a
3ff5184
cd29fed
 
 
 
f4f1195
 
 
cd29fed
 
f4f1195
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.10-slim

# Sistem bağımlılıklarını kur
RUN apt-get update && apt-get install -y \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Matplotlib için geçici dizinler oluştur
RUN mkdir -p /tmp/matplotlib && \
    chmod 777 /tmp/matplotlib

# Environment variables
ENV MPLCONFIGDIR=/tmp/matplotlib
ENV FLASK_APP=app.py

# Çalışma dizini
WORKDIR /app

# Requirements kopyala ve kur
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Tüm uygulama dosyalarını kopyala
COPY . .

# Port
EXPOSE 7860

# Uygulamayı başlat
CMD ["python", "app.py"]