self-ci/rust/Dockerfile

19 lines
537 B
Docker
Raw Normal View History

2020-11-21 21:31:34 -05:00
FROM moparisthebest/self-ci-base:latest
# set CROSS_DOCKER_IN_DOCKER to inform `cross` that it is executed from within a container
#ENV CROSS_DOCKER_IN_DOCKER=true
RUN mkdir /cargo && ln -sf /cargo/ /root/.cargo && \
pacman -Syu --noconfirm --needed docker rustup gcc && \
rustup install stable && rustup default stable && \
cargo install --root / cross
COPY ./build.sh /usr/bin/
VOLUME [ "/build", "/var/run/docker.sock" ]
WORKDIR /build
ENTRYPOINT ["/usr/bin/run.sh"]
CMD ["/usr/bin/build.sh", "./.jenkins/build.sh"]