Skip to content

Commit

Permalink
try fix docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ragibkl committed Aug 26, 2024
1 parent 4429b7c commit 8e98af3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
27 changes: 25 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ edition = "2021"

[dependencies]
anyhow = "1.0.86"
aws-lc-rs = {version = "*", features = ["bindgen"]}
axum = "0.7.5"
axum-macros = "0.4.1"
axum-server = { version = "0.7.1", features = ["tls-rustls"] }
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
## builder
FROM alpine:3.19 as builder
FROM alpine:3.19 AS builder

WORKDIR /code/dnsdist-acme

# setup build dependencies
RUN apk add rust cargo
RUN apk add rust cargo build-base clang clang-dev cmake g++
RUN cargo install --force --locked bindgen-cli
RUN cargo init .
COPY Cargo.toml Cargo.lock ./
RUN cargo build --release
Expand All @@ -19,13 +20,13 @@ RUN cargo build --release


## dnstap
FROM alpine:3.19 as dnstap
FROM alpine:3.19 AS dnstap
RUN apk add go
RUN go install github.com/dnstap/golang-dnstap/[email protected]


## runtime
FROM alpine:3.19 as runtime
FROM alpine:3.19 AS runtime

WORKDIR /dnsdist-acme

Expand Down

0 comments on commit 8e98af3

Please sign in to comment.