self-ci/rust/Dockerfile
moparisthebest 9fa6cca726
Some checks reported errors
moparisthebest/self-ci/pipeline/head Something is wrong with the build of this commit
Add self-ci-rust
2020-11-22 01:23:32 -05:00

19 lines
537 B
Docker

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"]