mirror of
https://github.com/Noratrieb/uptime.git
synced 2026-01-16 09:35: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
|
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 update
|
||||||
RUN apt-get install musl-tools -y
|
RUN apt-get install musl-tools -y
|
||||||
|
|
||||||
|
|
@ -10,16 +8,16 @@ COPY Cargo.toml Cargo.lock rust-toolchain.toml ./
|
||||||
RUN mkdir src
|
RUN mkdir src
|
||||||
RUN echo "fn main() {}" > src/main.rs
|
RUN echo "fn main() {}" > src/main.rs
|
||||||
|
|
||||||
RUN cargo build --release --target x86_64-unknown-linux-musl
|
RUN cargo build --release
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# 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 --target x86_64-unknown-linux-musl
|
RUN cargo build --release
|
||||||
|
|
||||||
### RUN
|
### RUN
|
||||||
FROM gcr.io/distroless/static-debian12
|
FROM gcr.io/distroless/cc
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue