mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3.10
 | 
						|
ENV DEBIAN_FRONTEND noninteractive
 | 
						|
WORKDIR /app/
 | 
						|
 | 
						|
# Initial apt install
 | 
						|
RUN apt update
 | 
						|
RUN apt install -y libgtk-4-1 libvulkan1 libxdamage1 \
 | 
						|
                novnc websockify 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
 | 
						|
 | 
						|
# Additional repos and packages
 | 
						|
RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb \
 | 
						|
    && dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
 | 
						|
RUN curl -sSL http://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_123.0.6312.86-1_amd64.deb -o chrome.deb \
 | 
						|
    && dpkg -i chrome.deb
 | 
						|
RUN ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime
 | 
						|
RUN wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key \
 | 
						|
    && echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | tee -a /etc/apt/sources.list.d/grafana.list
 | 
						|
RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
 | 
						|
# Install from new repo
 | 
						|
RUN apt update \
 | 
						|
    && apt install -y redis grafana
 | 
						|
 | 
						|
# Configure Grafana
 | 
						|
RUN grafana-cli plugins install frser-sqlite-datasource
 | 
						|
 | 
						|
COPY requirements.txt /app/requirements.txt
 | 
						|
RUN python3 -m pip install -r requirements.txt
 | 
						|
 | 
						|
# Setup app
 | 
						|
RUN git clone https://gitea.augustin64.fr/piair/MsRewards-Reborn
 | 
						|
# Use this instead when developping locally:
 | 
						|
# COPY . /app/MsRewards-Reborn
 | 
						|
 | 
						|
RUN bash MsRewards-Reborn/config/config.sh
 | 
						|
 | 
						|
ENV TZ="Europe/Paris"
 | 
						|
WORKDIR /app/MsRewards-Reborn/Flask/
 | 
						|
CMD bash start.sh
 |