Rust build image with alpine and formal updates

This commit is contained in:
2021-09-14 13:36:07 +02:00
parent 801826e5c9
commit da03dbca37
3 changed files with 19 additions and 8 deletions

View File

@@ -1,7 +1,9 @@
FROM archlinux:base-devel
FROM alpine:edge
RUN pacman -Suyy --noconfirm\
rustup docker
RUN rustup toolchain install stable
RUN apk update&&apk upgrade&&apk add\
rustup
RUN rustup-init -y
CMD [ "bash" ]
ENV PATH="/root/.cargo/bin:${PATH}"
CMD [ "ash" ]