MsRewards/Dockerfile

39 lines
1.1 KiB
Docker
Raw Normal View History

2022-09-23 16:34:01 +02:00
FROM python:3.10
ENV DEBIAN_FRONTEND noninteractive
ENV GECKODRIVER_VER v0.31.0
ENV FIREFOX_VER 87.0
WORKDIR /app
RUN set -x \
&& apt update \
&& apt upgrade -y \
&& apt install -y \
2023-04-14 10:31:12 +02:00
tzdata \
2022-09-23 16:34:01 +02:00
wfrench \
git \
libx11-xcb1 \
libdbus-glib-1-2 \
2023-03-09 14:30:29 +01:00
libasound2 \
libgtk-3-0 \
xvfb \
nano \
2023-03-25 18:40:17 +01:00
tigervnc-standalone-server \
2022-12-29 17:53:45 +01:00
&& git clone https://github.com/piair338/MsRewards \
2023-04-15 11:03:47 +02:00
&& ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime \
2022-12-29 17:53:45 +01:00
&& pip install -r MsRewards/requirements.txt \
2022-09-23 16:34:01 +02:00
&& curl -sSLO https://download-installer.cdn.mozilla.net/pub/firefox/releases/91.9.1esr/linux-x86_64/en-US/firefox-91.9.1esr.tar.bz2 \
&& tar -jxf firefox-* \
&& mv firefox /opt/ \
&& chmod 755 /opt/firefox \
&& chmod 755 /opt/firefox/firefox \
2022-12-29 17:56:42 +01:00
&& ln -s /opt/firefox/firefox /usr/bin/firefox \
2022-09-23 16:34:01 +02:00
&& curl -sSLO https://github.com/mozilla/geckodriver/releases/download/${GECKODRIVER_VER}/geckodriver-${GECKODRIVER_VER}-linux64.tar.gz \
&& tar zxf geckodriver-*.tar.gz \
&& mv geckodriver /usr/bin/
2023-04-14 10:31:12 +02:00
ENV TZ="Europe/Paris"
2022-11-19 17:02:28 +01:00
WORKDIR /app/MsRewards
2022-09-23 16:34:01 +02:00
CMD python main.py