forked from iv-org/youtube-trusted-session-generator
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 592 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 592 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.12-alpine3.19
# Install dependencies
RUN apk add --no-cache \
xvfb \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
chromium \
chromium-chromedriver
WORKDIR /app
COPY potoken-generator.py requirements.txt ./
COPY potoken_generator/ ./potoken_generator/
RUN pip install --no-cache-dir -r requirements.txt
COPY docker/scripts/startup.sh ./
RUN sed -i 's/await self.sleep(0.5)/await self.sleep(2)/' /usr/local/lib/python3.12/site-packages/nodriver/core/browser.py
# Run
CMD [ "./startup.sh"]