Update rust/latest/Dockerfile
This commit is contained in:
@@ -1,16 +1,19 @@
|
|||||||
FROM --platform=$TARGETOS/$TARGETARCH rust:slim
|
FROM --platform=$TARGETOS/$TARGETARCH rust:slim
|
||||||
|
|
||||||
LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com"
|
LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com"
|
||||||
|
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config \
|
&& apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config build-essential libssl-dev \
|
||||||
&& useradd -m -d /home/container container
|
&& useradd -m -d /home/container container \
|
||||||
|
&& rustup update \
|
||||||
|
&& rustup default nightly \
|
||||||
|
&& rustup component add rust-src
|
||||||
|
|
||||||
USER container
|
USER container
|
||||||
ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo
|
ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo
|
||||||
WORKDIR /home/container
|
WORKDIR /home/container
|
||||||
|
|
||||||
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
|
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||||
CMD ["/entrypoint.sh"]
|
CMD ["/entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user