FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
helm-controller/Dockerfile at main · fluxcd/helm-controller · GitHub
fluxcd
/
helm-controller
Public
Notifications
You must be signed in to change notification settings
Fork
220
Star
511
Code
Issues
71
Pull requests
18
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
helm-controller
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (28 loc) · 844 Bytes
Breadcrumbs
helm-controller
/
Dockerfile
Copy path
File metadata and controls
43 lines (28 loc) · 844 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
ARG
GO_VERSION=1.26
ARG
XX_VERSION=1.9.0
FROM
--platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
#
Docker buildkit multi-arch build requires golang alpine
FROM
--platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine AS builder
#
Copy the build utilities.
COPY
--from=xx / /
ARG
TARGETPLATFORM
WORKDIR
/workspace
#
copy api submodule
COPY
api/ api/
#
copy modules manifests
COPY
go.mod go.mod
COPY
go.sum go.sum
#
cache modules
RUN
go mod download
#
copy source code
COPY
main.go main.go
COPY
internal/ internal/
#
build without specifing the arch
ENV
CGO_ENABLED=0
RUN
xx-go build -trimpath -a -o helm-controller main.go
FROM
alpine:3.23
RUN
apk add --no-cache ca-certificates \
&& update-ca-certificates
COPY
--from=builder /workspace/helm-controller /usr/local/bin/
USER
65534:65534
ENTRYPOINT
[
"helm-controller"
]
Back
|
FazBrowse Home
|
New Git URL