two step build is broken anyways

This commit is contained in:
Jan-Henrik 2023-08-06 14:18:18 +02:00
parent ba5bc1ab1f
commit 8600b0ba38

View file

@ -5,15 +5,8 @@ RUN ./platform.sh # should write /.platform and /.compiler
RUN rustup target add $(cat /.platform)
RUN apt update && apt-get install -y unzip $(cat /.compiler)
RUN USER=root cargo new --bin ics-adapter
WORKDIR ./ics-adapter
COPY ./Cargo.toml ./Cargo.toml
RUN cargo build --release --target $(cat /.platform)
RUN rm src/*.rs
ADD . ./
RUN rm ./target/$(cat /.platform)/release/deps/ics_adapter*
RUN cargo build --release --target $(cat /.platform)
RUN cp ./target/$(cat /.platform)/release/ics-adapter /ics-adapter.bin # Get rid of this when build --out is stable