spacepackets/automation/Dockerfile

16 lines
612 B
Docker
Raw Normal View History

2022-08-05 00:44:41 +02:00
# 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
2022-08-16 10:20:00 +02:00
# set CROSS_CONTAINER_IN_CONTAINER to inform `cross` that it is executed from within a container
ENV CROSS_CONTAINER_IN_CONTAINER=true
2022-08-16 10:50:21 +02:00
# TODO: installing cross is problematic, permission issues
RUN rustup target add thumbv7em-none-eabihf armv7-unknown-linux-gnueabihf && \
2022-08-16 10:35:44 +02:00
rustup component add rustfmt clippy