spacepackets/automation/Dockerfile
Robin Mueller c5b16f006f
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
weird permission errors
2022-08-16 10:35:44 +02:00

15 lines
520 B
Docker

# Run the following commands from root directory to build and run locally
# docker build -f automation/Dockerfile -t <NAME> .
# docker run -it <NAME>
FROM rust:latest
RUN apt-get update
RUN apt-get --yes upgrade
# tzdata is a dependency, won't install otherwise
ARG DEBIAN_FRONTEND=noninteractive
# set CROSS_CONTAINER_IN_CONTAINER to inform `cross` that it is executed from within a container
ENV CROSS_CONTAINER_IN_CONTAINER=true
RUN rustup target add thumbv7m-none-eabi && \
rustup component add rustfmt clippy