-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (21 loc) · 939 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM archlinux:base-devel
ARG user=speedtest
RUN pacman -Syu git python-pip --needed --noconfirm && \
pacman-key --init && \
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com && \
pacman-key --lsign-key 3056513887B78AEB && \
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' --noconfirm && \
echo '[chaotic-aur]' >> /etc/pacman.conf && \
echo 'Include = /etc/pacman.d/chaotic-mirrorlist' >> /etc/pacman.conf && \
pacman -Syu paru --needed --noconfirm && \
useradd -m ${user} && \
echo "${user} ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/${user}
USER ${user}
RUN paru -Syu speedtest++ --noconfirm && \
paru -Sc --noconfirm
WORKDIR /usr/scr/app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY speedtest.py .
COPY run.sh .
CMD ["sh", "run.sh"]