Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vann-Dev committed Dec 16, 2023
1 parent 1ba631f commit 935dc00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 935dc00

Please sign in to comment.