youtube-trusted-session-gen.../Dockerfile

29 lines
524 B
Text
Raw Normal View History

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