Update Dockerfile
Browse files- Dockerfile +10 -5
Dockerfile
CHANGED
|
@@ -2,11 +2,16 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Gerekli sistem araçlarını kur
|
| 6 |
-
RUN apt-get update && apt-get install -y wget unzip libicu-dev && rm -rf /var/lib/apt/lists/*
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Gerekli sistem araçlarını kur
|
| 6 |
+
RUN apt-get update && apt-get install -y wget curl unzip libicu-dev && rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
+
# GitHub API kullanarak Il2CppDumper'ın en güncel Linux sürümünü otomatik bul ve indir
|
| 9 |
+
RUN mkdir /app/dumper && \
|
| 10 |
+
LATEST_URL=$(curl -s https://api.github.com/repos/Perfare/Il2CppDumper/releases/latest | grep "browser_download_url.*linux-x64\.zip" | cut -d '"' -f 4 | head -n 1) && \
|
| 11 |
+
wget "$LATEST_URL" -O /app/dumper.zip && \
|
| 12 |
+
unzip /app/dumper.zip -d /app/dumper && \
|
| 13 |
+
rm /app/dumper.zip && \
|
| 14 |
+
chmod +x /app/dumper/Il2CppDumper
|
| 15 |
|
| 16 |
COPY requirements.txt .
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|