tini part 2
This commit is contained in:
@@ -3,12 +3,14 @@ FROM --platform=$TARGETOS/$TARGETARCH rust:1.56-slim
|
||||
LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com"
|
||||
|
||||
RUN apt update \
|
||||
&& apt -y install git dnsutils curl iproute2 ffmpeg \
|
||||
&& apt -y install git dnsutils curl iproute2 ffmpeg tini \
|
||||
&& useradd -m -d /home/container container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo
|
||||
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