mirror of
https://github.com/iv-org/youtube-trusted-session-generator.git
synced 2025-01-15 16:12:21 +01:00
29 lines
No EOL
524 B
Docker
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"] |