FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cloudflared/Dockerfile at master · binhtph/cloudflared · GitHub
binhtph
/
cloudflared
Public
forked from
cloudflare/cloudflared
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cloudflared
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (23 loc) · 815 Bytes
Breadcrumbs
cloudflared
/
Dockerfile
Copy path
File metadata and controls
31 lines (23 loc) · 815 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
#
use a builder image for building cloudflare
ARG
TARGET_GOOS
ARG
TARGET_GOARCH
FROM
golang:1.19 as builder
ENV
GO111MODULE=on \
CGO_ENABLED=0 \
TARGET_GOOS=${TARGET_GOOS} \
TARGET_GOARCH=${TARGET_GOARCH}
WORKDIR
/go/src/github.com/cloudflare/cloudflared/
#
copy our sources into the builder image
COPY
. .
#
compile cloudflared
RUN
make cloudflared
#
use a distroless base image with glibc
FROM
gcr.io/distroless/base-debian11:nonroot
LABEL
org.opencontainers.image.source=
"https://github.com/cloudflare/cloudflared"
#
copy our compiled binary
COPY
--from=builder --chown=nonroot /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/
#
run as non-privileged user
USER
nonroot
#
command / entrypoint of container
ENTRYPOINT
[
"cloudflared"
,
"--no-autoupdate"
]
CMD
[
"version"
]
Back
|
FazBrowse Home
|
New Git URL