| 12345678910111213141516171819202122232425262728293031323334 |
- # Base
- FROM python:3.11.13-alpine3.22
- ENV MOZ_ENABLE_WAYLAND=1
- RUN apk add -U \
- firefox \
- font-dejavu \
- font-liberation \
- py3-pip
- RUN adduser user --disabled-password && \
- mkdir -p /home/user && \
- chown user:user /home/user && \
- chmod 0755 /home/user
- USER user
- WORKDIR /app
- # Requirements
- COPY --chown=user requirements.txt /app/requirements.txt
- RUN python3 -m venv ~/venv && \
- . ~/venv/bin/activate && \
- pip3 install -r requirements.txt
- # Profiles
- COPY --chown=user addons/ /app/addons/
- COPY --chown=user profiles/ /app/profiles/
- COPY --chown=user main.py /app/main.py
- RUN . ~/venv/bin/activate && \
- python3 main.py --configs arzamas bryansk voronezsh
- # Cleanup
- RUN rm -rf /app/*
- # Entrypoint
- ENTRYPOINT [ "/usr/bin/firefox" ]
|