mirror of
https://github.com/Noratrieb/cargo-bisect-rustc-service.git
synced 2026-01-14 16:25:01 +01:00
dockering
This commit is contained in:
parent
b36cab3491
commit
fb4adf0ca3
1 changed files with 8 additions and 5 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -12,19 +12,22 @@ COPY Cargo.toml Cargo.lock ./
|
||||||
RUN mkdir src
|
RUN mkdir src
|
||||||
RUN echo "fn main() {}" > src/main.rs
|
RUN echo "fn main() {}" > src/main.rs
|
||||||
|
|
||||||
RUN cargo build --release -Zsparse-registry --target x86_64-unknown-linux-musl
|
RUN cargo build --release -Zsparse-registry
|
||||||
|
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
COPY index.html index.html
|
||||||
|
|
||||||
# now rebuild with the proper main
|
# now rebuild with the proper main
|
||||||
RUN touch src/main.rs
|
RUN touch src/main.rs
|
||||||
RUN cargo build --release -Zsparse-registry --target x86_64-unknown-linux-musl
|
RUN cargo build --release -Zsparse-registry
|
||||||
|
|
||||||
### RUN
|
### RUN
|
||||||
FROM gcr.io/distroless/static
|
FROM rust
|
||||||
|
|
||||||
|
RUN cargo install cargo-bisect-rustc
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/cargo-bisect-rustc-service cargo-bisect-rustc-service
|
COPY --from=build /app/target/release/cargo-bisect-rustc-service cargo-bisect-rustc-service
|
||||||
|
|
||||||
ENTRYPOINT ["/app/cargo-bisect-rustc-service"]
|
CMD ["/app/cargo-bisect-rustc-service"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue