yusufgundogdu commited on
Commit
b04da03
·
verified ·
1 Parent(s): 8e8511f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -1,11 +1,9 @@
1
- # Python'un slim versiyonu (Alpine'den daha stabil)
2
  FROM python:3.9-slim
3
 
4
  WORKDIR /app
5
 
6
- # Gerekli sistem kütüphaneleri
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
- gcc \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt .
@@ -13,5 +11,6 @@ RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  COPY . .
15
 
16
- # Flask'ın built-in sunucusu ile çalıştır (threaded mode)
 
17
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Minimal bağımlılıklar
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  COPY requirements.txt .
 
11
 
12
  COPY . .
13
 
14
+ # Hugging Face'in beklediği PORT değişkeni
15
+ ENV PORT=8080
16
  CMD ["python", "app.py"]