tini part 2
This commit is contained in:
@@ -8,7 +8,7 @@ RUN apt update && apt install --no-install-recommends -y curl \
|
||||
&& apt install -y nodejs \
|
||||
&& npm install -g npm@latest \
|
||||
## install bastion reqs
|
||||
&& apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 tzdata \
|
||||
&& apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 tzdata tini \
|
||||
## add container user
|
||||
&& useradd -d /home/container -m container -s /bin/bash
|
||||
|
||||
@@ -16,5 +16,7 @@ USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
Reference in New Issue
Block a user