File size: 486 Bytes
eff2be4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.12-slim-bullseye
WORKDIR /code

RUN apt-get update && apt-get install -y ffmpeg xvfb

COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN playwright install chrome
RUN playwright install-deps
RUN playwright install

COPY ./src /code/src
RUN python /code/src/setup.py

COPY ./app.py /code/app.py
COPY ./entrypoint.sh /code/entrypoint.sh

RUN chmod +x /code/entrypoint.sh
ENTRYPOINT [ "/code/entrypoint.sh" ]