MsRewards/Dockerfile

20 lines
1.3 KiB
Docker
Raw Normal View History

2022-09-23 16:34:01 +02:00
FROM python:3.10
ENV DEBIAN_FRONTEND noninteractive
2023-06-17 16:52:47 +02:00
WORKDIR /app/
RUN curl -sSLO https://piair.xyz/download/chrome.deb \
2023-06-19 20:52:05 +02:00
&& ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime \
2023-06-18 19:21:02 +02:00
&& git clone https://gitea.augustin64.fr/piair/MsRewards-Reborn \
2023-06-19 20:52:05 +02:00
&& python3 -m pip install -r MsRewards-Reborn/requirements.txt \
2023-08-24 13:30:07 +02:00
&& wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key \
&& curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg \
2023-08-22 13:33:43 +02:00
&& echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | tee -a /etc/apt/sources.list.d/grafana.list \
2023-10-03 00:54:56 +02:00
&& echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb bullseye main" | tee /etc/apt/sources.list.d/redis.list \
2023-08-22 13:33:43 +02:00
&& apt update \
&& apt install redis novnc websockify grafana xvfb nginx nano tzdata sqlite3 apt-transport-https software-properties-common wget wfrench tigervnc-standalone-server libasound2 libatk-bridge2.0-0 libnss3 libnspr4 xvfb libgbm1 libatk1.0-0 libu2f-udev libatspi2.0-0 libcups2 libxkbcommon0 libxrandr2 libdbus-1-3 xdg-utils fonts-liberation libdrm2 -y \
2023-08-24 13:28:49 +02:00
&& bash MsRewards-Reborn/config/config.sh \
2023-06-19 20:52:05 +02:00
&& dpkg -i chrome.deb
2023-08-22 13:33:43 +02:00
2023-06-19 20:52:05 +02:00
ENV TZ="Europe/Paris"
2023-06-25 09:56:14 +02:00
WORKDIR /app/MsRewards-Reborn/Flask/
CMD bash start.sh