Spaces:
Paused
Paused
File size: 827 Bytes
0e46f1f 7cf7779 922f08e 7cf7779 0e46f1f 7cf7779 922f08e 7cf7779 922f08e 7cf7779 bab52a4 922f08e bab52a4 7cf7779 0e46f1f 7cf7779 0e46f1f 7cf7779 | 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 | FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV DISPLAY=:1
ENV LC_ALL=C.UTF-8
# Base packages + Firefox ESR مباشرة بدون PPA
RUN apt-get update && apt-get install -y \
python3 python3-pip \
xvfb \
fluxbox \
scrot \
xdotool \
xclip \
xauth \
x11-utils \
x11-xserver-utils \
imagemagick \
fonts-noto \
curl wget ca-certificates \
firefox-esr \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Verify firefox installed correctly
RUN firefox-esr --version || echo "Firefox ESR installed"
# Python dependencies
COPY requirements.txt /app/requirements.txt
RUN pip3 install --no-cache-dir -r /app/requirements.txt
# App files
WORKDIR /app
COPY app.py /app/app.py
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
EXPOSE 7860
CMD ["/app/start.sh"]
|