2024-07-24 15:52:30 +00:00
|
|
|
FROM python:3.11
|
|
|
|
|
|
|
|
# python
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
|
|
# prevents python creating .pyc files
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
# it gets named `.venv`
|
|
|
|
POETRY_VIRTUALENVS_IN_PROJECT=true \
|
|
|
|
# do not ask any interactive question
|
|
|
|
POETRY_NO_INTERACTION=1\
|
|
|
|
HEADLESS=1
|
|
|
|
|
2024-07-24 17:51:01 +00:00
|
|
|
|
|
|
|
RUN apt update && apt upgrade -y
|
|
|
|
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
|
|
RUN apt install -y ./google-chrome-stable_current_amd64.deb
|
|
|
|
|
2024-07-24 15:52:30 +00:00
|
|
|
RUN curl -sSL https://install.python-poetry.org | python3 -
|
2024-07-24 17:51:01 +00:00
|
|
|
ENV PATH="root/.local/bin:$PATH"
|
|
|
|
RUN /root/.local/bin/poetry install
|
2024-07-24 15:52:30 +00:00
|
|
|
|
2024-07-24 17:51:01 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN poetry install
|
|
|
|
RUN python fix_nodriver.py
|
|
|
|
ENTRYPOINT ["python", "main.py"]
|