yusufgundogdu commited on
Commit
7eb9eb6
·
verified ·
1 Parent(s): 8d1298d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -2,15 +2,23 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && \
6
  apt-get install -y sqlite3 && \
 
 
7
  rm -rf /var/lib/apt/lists/*
8
 
 
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
 
12
  COPY . .
13
 
 
 
 
14
  EXPOSE 7860
15
 
16
  CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Gerekli paketler ve izinler
6
  RUN apt-get update && \
7
  apt-get install -y sqlite3 && \
8
+ mkdir -p /data && \
9
+ chmod a+rwx /data && \
10
  rm -rf /var/lib/apt/lists/*
11
 
12
+ # Bağımlılıkları yükle
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Uygulama dosyalarını kopyala
17
  COPY . .
18
 
19
+ # Veritabanı için yazılabilir dizin
20
+ ENV DATABASE_PATH=/data/users.db
21
+
22
  EXPOSE 7860
23
 
24
  CMD ["python", "app.py"]