2023-06-07 04:25:24 -04:00
|
|
|
FROM python:3.11
|
|
|
|
|
|
|
|
WORKDIR /code
|
|
|
|
|
|
|
|
ENTRYPOINT ["python", "rebooter.py"]
|
|
|
|
|
|
|
|
RUN apt update --fix-missing
|
|
|
|
RUN apt install -y firefox-esr iputils-ping
|
|
|
|
|
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
2023-06-07 05:52:17 -04:00
|
|
|
RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-linux64.tar.gz
|
|
|
|
RUN tar -xzf geckodriver-v0.33.0-linux64.tar.gz -C /usr/local/bin
|
|
|
|
RUN rm geckodriver-v0.33.0-linux64.tar.gz
|
|
|
|
|
2023-06-07 04:25:24 -04:00
|
|
|
COPY src .
|