File size: 735 Bytes
5797184
a7e6623
04a4aed
5797184
 
04a4aed
 
5797184
 
 
138c8a0
 
5797184
04a4aed
138c8a0
8ada0ab
 
138c8a0
 
8ada0ab
04a4aed
5797184
a7e6623
138c8a0
5797184
a7e6623
138c8a0
5797184
 
a7e6623
04a4aed
65a3f95
 
138c8a0
a7e6623
 
04a4aed
65a3f95
5797184
a7e6623
138c8a0
a80b429
138c8a0
04a4aed
65a3f95
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
39
40
41
42
43
44
45
FROM ubuntu:22.04

# 1. System Tools & Fluxbox Install karo (XFCE hata diya hai)
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
    fluxbox \
    xterm \
    xvfb \
    python3 \
    python3-pip \
    python3-tk \
    python3-dev \
    scrot \
    imagemagick \
    chromium-browser \
    wget \
    curl \
    unzip \
    zip \
    x11-utils \
    xdotool \
    && apt-get clean

# 2. Setup Directory
WORKDIR /app

# 3. Python Libs
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt

# 4. Set Display Env
ENV DISPLAY=:99

# 5. Copy Files
COPY . .

# 6. Permissions
RUN chmod +x start.sh
RUN chmod -R 777 /app

# 7. Expose Port
EXPOSE 7860

# 8. Run
CMD ["/bin/bash", "start.sh"]