-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·21 lines (21 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
executable file
·21 lines (21 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM archlinux/base
RUN pacman -Sy --noconfirm reflector &&\
reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist &&\
pacman -Syu --noconfirm sudo base-devel
RUN useradd -m -s /bin/bash sma && echo "sma ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && visudo -cqs -f /etc/sudoers
USER sma
WORKDIR /home/sma
# RUN curl https://aur.archlinux.org/cgit/aur.git/snapshot/sbfspot-mysql-git.tar.gz | tar xz &&\
# cd sbfspot-mysql-git &&\
# makepkg -sri --noconfirm &&\
# rm -fr /home/sma/sbfspot-mysql-git
COPY . .
RUN makepkg -sri --noconfirm
USER root
RUN sed -i '$ d' /etc/sudoers &&\
visudo -cqs -f /etc/sudoers &&\
pacman -Rsuncd --noconfirm sudo $(pacman -Qtdq)
USER sma
VOLUME /etc/SBFspot.cfg
ENV ARGS=""
ENTRYPOINT /opt/sbfspot.3/SBFspot -cfg/etc/SBFspot.cfg $ARGS