Skip to content

Commit

Permalink
Merge pull request #162 from loxilb-io/multi-arch-build
Browse files Browse the repository at this point in the history
Fixed gh-action for multi-arch build
  • Loading branch information
TrekkieCoder committed Jul 28, 2024
2 parents aa8389c + d17f39b commit a9c0114
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
FROM golang:1.22-alpine AS builder

RUN apk update && apk add git && apk add make

WORKDIR /usr/src/app
COPY . .

RUN make build

FROM golang:1.21

LABEL name="kube-loxilb" \
Expand All @@ -9,6 +18,7 @@ LABEL name="kube-loxilb" \
maintainer="backguyn@netlox.io"

WORKDIR /bin/
COPY ./bin/kube-loxilb /bin/kube-loxilb
COPY --from=builder /usr/src/app/bin/kube-loxilb /bin/kube-loxilb

USER root
RUN chmod +x /bin/kube-loxilb

0 comments on commit a9c0114

Please sign in to comment.