Spaces:
Sleeping
Sleeping
File size: 784 Bytes
d448cb8 | 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 32 33 34 35 36 | # Python base image use karenge
FROM python:3.9-slim
# Root user
USER root
# 1. Install Java (Required for Jadx) & Utilities
RUN apt-get update && \
apt-get install -y default-jdk wget unzip zip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# 2. Install JADX (The Decompiler)
WORKDIR /opt
# Jadx ka stable version download kar rahe hain
RUN wget https://github.com/skylot/jadx/releases/download/v1.4.7/jadx-1.4.7.zip -O jadx.zip && \
unzip jadx.zip -d jadx && \
rm jadx.zip
# Add Jadx to System Path
ENV PATH="/opt/jadx/bin:${PATH}"
# 3. Setup Python App
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Permissions
RUN chmod -R 777 /app
# Expose Port
EXPOSE 7860
# Run Flask
CMD ["python", "app.py"] |