Skip to content

Commit 2df5424

Browse files
committed
kea: Build stork natively
1 parent 279f6da commit 2df5424

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

kea/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
2020

2121
###
2222

23-
FROM --platform=$BUILDPLATFORM $BASE as build-stork
23+
FROM $BASE as build-stork
2424

2525
RUN apt-get update \
2626
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git rake build-essential wget unzip python3
@@ -34,10 +34,6 @@ ENV GOPATH=/build/go
3434
RUN --mount=type=cache,dst=/build/stork/tools \
3535
rake build:agent
3636

37-
ENV GOOS=linux
38-
ENV GOARCH=arm64
39-
ENV CGO_ENABLED=0
40-
4137
RUN --mount=type=cache,dst=/build/stork/tools \
4238
../tools/golang/go/bin/go install ./cmd/stork-agent
4339

@@ -67,7 +63,7 @@ RUN apt-get update \
6763
&& apt-get clean && rm -rf /var/lib/apt/lists/*
6864

6965
COPY --from=build-healthz /app/bin/healthz /app/healthzd
70-
COPY --from=build-stork /build/go/bin/linux_arm64/stork-agent /app/stork-agent
66+
COPY --from=build-stork /build/go/bin/stork-agent /app/stork-agent
7167
COPY run.sh /app/run.sh
7268
COPY choose_dhcp_server_id.rb /app/choose_dhcp_server_id.rb
7369
COPY --from=config /app/kea-ctrl-agent.json /app/kea-ctrl-agent.json

0 commit comments

Comments
 (0)