mirror of
https://github.com/Noratrieb/uptime.git
synced 2026-01-14 16:45:06 +01:00
fix cc
This commit is contained in:
parent
3e2b62705e
commit
846b7f3a24
1 changed files with 3 additions and 5 deletions
|
|
@ -1,7 +1,5 @@
|
|||
FROM docker.io/library/rust:1.72 as build
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-musl
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install musl-tools -y
|
||||
|
||||
|
|
@ -10,16 +8,16 @@ COPY Cargo.toml Cargo.lock rust-toolchain.toml ./
|
|||
RUN mkdir src
|
||||
RUN echo "fn main() {}" > src/main.rs
|
||||
|
||||
RUN cargo build --release --target x86_64-unknown-linux-musl
|
||||
RUN cargo build --release
|
||||
|
||||
COPY . .
|
||||
|
||||
# now rebuild with the proper main
|
||||
RUN touch src/main.rs
|
||||
RUN cargo build --release --target x86_64-unknown-linux-musl
|
||||
RUN cargo build --release
|
||||
|
||||
### RUN
|
||||
FROM gcr.io/distroless/static-debian12
|
||||
FROM gcr.io/distroless/cc
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue