mirror of
https://github.com/jhbruhn/ics-adapter.git
synced 2025-03-15 03:25:49 +00:00
two step build is broken anyways
This commit is contained in:
parent
ba5bc1ab1f
commit
8600b0ba38
1 changed files with 0 additions and 7 deletions
|
@ -5,15 +5,8 @@ RUN ./platform.sh # should write /.platform and /.compiler
|
||||||
RUN rustup target add $(cat /.platform)
|
RUN rustup target add $(cat /.platform)
|
||||||
RUN apt update && apt-get install -y unzip $(cat /.compiler)
|
RUN apt update && apt-get install -y unzip $(cat /.compiler)
|
||||||
|
|
||||||
RUN USER=root cargo new --bin ics-adapter
|
|
||||||
WORKDIR ./ics-adapter
|
WORKDIR ./ics-adapter
|
||||||
COPY ./Cargo.toml ./Cargo.toml
|
|
||||||
RUN cargo build --release --target $(cat /.platform)
|
|
||||||
RUN rm src/*.rs
|
|
||||||
|
|
||||||
ADD . ./
|
ADD . ./
|
||||||
|
|
||||||
RUN rm ./target/$(cat /.platform)/release/deps/ics_adapter*
|
|
||||||
RUN cargo build --release --target $(cat /.platform)
|
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
|
RUN cp ./target/$(cat /.platform)/release/ics-adapter /ics-adapter.bin # Get rid of this when build --out is stable
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue