youtube-trusted-session-gen.../Dockerfile
2024-07-20 10:42:31 +02:00

29 lines
No EOL
524 B
Docker

FROM python:3.12-alpine
# Install dependencies
RUN apk add --no-cache \
xvfb \
x11vnc \
fluxbox \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
chromium \
chromium-chromedriver
# Install x11vnc
RUN mkdir ~/.vnc
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
WORKDIR /usr/app/src
COPY index.py requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY docker/scripts/startup.sh ./
# Run
CMD [ "./startup.sh"]