Skip to content

Commit

Permalink
Fix docker image building
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Jun 18, 2024
1 parent 5690eb2 commit 677fa63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1-buster AS builder
FROM --platform=$BUILDPLATFORM rust:1-buster AS builder

RUN apt-get update && apt-get install cmake -y

Expand All @@ -8,8 +8,9 @@ COPY . .

RUN cargo install --locked --path=.

FROM --platform=$BUILDPLATFORM debian:buster

FROM debian:buster-slim
RUN apt-get update && apt-get install openssl -y && apt-get clean

COPY --from=builder /usr/local/cargo/bin/esdump-rs /usr/local/bin/esdump-rs

Expand Down

0 comments on commit 677fa63

Please sign in to comment.