feliksius commited on
Commit
60a4195
·
verified ·
1 Parent(s): d434148

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -1,5 +1,10 @@
1
  # Gunakan image Python resmi
2
- FROM python:3.9-slim
 
 
 
 
 
3
 
4
  # Set working directory
5
  WORKDIR /app
@@ -10,6 +15,9 @@ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
10
  # Bersihkan cache lama (untuk mencegah error izin)
11
  RUN rm -rf /app/cache/* && chmod -R 777 /app/cache
12
 
 
 
 
13
  # Salin requirements.txt dan install dependensi
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
 
1
  # Gunakan image Python resmi
2
+ FROM python:3.9-slim@sha256:bef8d69306a7905f55cd523f5604de1dde45bbf745ba896dbb89f6d15c727170
3
+
4
+ # Instal dependensi sistem untuk opencc-python-reborn
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ libopencc-dev \
7
+ && rm -rf /var/lib/apt/lists/*
8
 
9
  # Set working directory
10
  WORKDIR /app
 
15
  # Bersihkan cache lama (untuk mencegah error izin)
16
  RUN rm -rf /app/cache/* && chmod -R 777 /app/cache
17
 
18
+ # Upgrade pip untuk kompatibilitas paket terbaru
19
+ RUN pip install --upgrade pip
20
+
21
  # Salin requirements.txt dan install dependensi
22
  COPY requirements.txt .
23
  RUN pip install --no-cache-dir -r requirements.txt