mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 03:38:04 +00:00
Second attempt to do multiarch image (#370)
* Second attempt to do multiarch image * Build it * Arch Args * Auth for push * Remove condition * Fix tag name * Another try * Finalize changes
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,9 +1,13 @@
|
||||
# Stage - builder
|
||||
FROM golang as builder
|
||||
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang as builder
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
||||
ENV GOOS=linux
|
||||
ENV GOARCH=amd64
|
||||
ENV GOOS=${TARGETOS:-linux}
|
||||
ENV GOARCH=${TARGETARCH:-amd64}
|
||||
ENV CGO_ENABLED=0
|
||||
|
||||
WORKDIR /build
|
||||
@@ -23,7 +27,11 @@ WORKDIR /build/src
|
||||
RUN make build
|
||||
|
||||
# Stage - runner
|
||||
FROM alpine
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
# Python
|
||||
|
||||
Reference in New Issue
Block a user