2021-06-08 20:56:18 +12:00
|
|
|
FROM archlinux:latest
|
2020-02-11 20:25:37 +13:00
|
|
|
ARG CTNG_UID=1000
|
|
|
|
ARG CTNG_GID=1000
|
2019-02-28 09:24:57 -08:00
|
|
|
RUN pacman -Sy --noconfirm archlinux-keyring
|
2019-01-14 23:58:53 -08:00
|
|
|
RUN pacman -Syu --noconfirm
|
2020-01-22 21:00:46 +13:00
|
|
|
RUN pacman -S --noconfirm base-devel git help2man python unzip wget audit rsync
|
2018-09-28 11:44:48 -07:00
|
|
|
RUN groupadd -g $CTNG_GID ctng
|
|
|
|
RUN useradd -d /home/ctng -m -g $CTNG_GID -u $CTNG_UID -s /bin/bash ctng
|
2022-02-10 14:43:30 -08:00
|
|
|
RUN wget -O /sbin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64
|
2018-09-28 11:44:48 -07:00
|
|
|
RUN chmod a+x /sbin/dumb-init
|
2018-10-28 10:44:22 -07:00
|
|
|
RUN echo 'export PATH=/opt/ctng/bin:$PATH' >> /etc/profile
|
2018-10-09 00:03:10 -07:00
|
|
|
RUN echo 'export MENUCONFIG_COLOR=mono' >> /etc/profile
|
2018-09-28 11:44:48 -07:00
|
|
|
ENTRYPOINT [ "/sbin/dumb-init", "--" ]
|