Pcmodcomputer / Dockerfile
THEZYZSTUDIO's picture
Update Dockerfile
922f08e verified
Raw
History Blame Contribute Delete
827 Bytes
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"]