File size: 755 Bytes
094fe0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
# Base image
FROM cirrusci/android-sdk:33

# Root user
USER root

# 1. Update & Install Tools
RUN apt-get update && \
    apt-get install -y python3 python3-pip openjdk-17-jdk apksigner zipalign && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# 2. Environment Variables
ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64
ENV ANDROID_HOME /opt/android-sdk
ENV PATH ${PATH}:${JAVA_HOME}/bin

# Working Directory
WORKDIR /app

# Requirements Copy
COPY requirements.txt .

# Install Flask and dependencies
RUN pip3 install --no-cache-dir flask
RUN pip3 install --no-cache-dir -r requirements.txt

# Files Copy
COPY . .

# Permissions
RUN chmod -R 777 /app

# Port Expose
EXPOSE 7860

# Run Command (Flask App on Port 7860)
CMD ["python3", "app.py"]