2018-04-28 05:57:56 +00:00
|
|
|
FROM gentoo/stage3-amd64-hardened
|
2020-02-11 07:25:37 +00:00
|
|
|
ARG CTNG_UID=1000
|
|
|
|
ARG CTNG_GID=1000
|
2018-09-28 18:44:48 +00:00
|
|
|
RUN groupadd -g $CTNG_GID ctng
|
|
|
|
RUN useradd -d /home/ctng -m -g $CTNG_GID -u $CTNG_UID -s /bin/bash ctng
|
2018-04-28 05:57:56 +00:00
|
|
|
RUN wget -O /sbin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64
|
2018-09-27 06:54:55 +00:00
|
|
|
RUN chmod a+x /sbin/dumb-init
|
2018-10-28 17:44:22 +00:00
|
|
|
RUN echo 'export PATH=/opt/ctng/bin:$PATH' >> /etc/profile
|
2018-04-28 05:57:56 +00:00
|
|
|
ENTRYPOINT [ "/sbin/dumb-init", "--" ]
|