diff --git a/Dockerfile b/Dockerfile index cadc20e..3b4ab6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,16 @@ FROM rust:1.74.1-slim-bookworm as build -RUN apt-get update -y && \ - apt-get install -y pkg-config make g++ libssl-dev +RUN rustup target add x86_64-unknown-linux-musl +RUN apt-get update && apt-get install -y musl-tools WORKDIR /tmp/build COPY . . -RUN cargo build --release +RUN cargo build --release --target=x86_64-unknown-linux-musl FROM rust:1.74.1-slim-bookworm -COPY --from=build /image-proxy/target/release/image-proxy . +COPY --from=build /image-proxy/target/x86_64-unknown-linux-musl/image-proxy . CMD ["./image-proxy"] \ No newline at end of file