Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-bench
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
aquasecurity
kube-bench
Commits
7b538ed6
Commit
7b538ed6
authored
7 years ago
by
Liz Rice
Browse files
Options
Downloads
Patches
Plain Diff
Multistage build
parent
778c6620
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+5
-5
5 additions, 5 deletions
Dockerfile
with
5 additions
and
5 deletions
Dockerfile
+
5
−
5
View file @
7b538ed6
FROM
golang:1.
8
FROM
golang:1.
9
WORKDIR
/kube-bench
WORKDIR
/kube-bench
RUN
go get github.com/aquasecurity/kube-bench
RUN
go get github.com/aquasecurity/kube-bench
RUN
cp
/go/bin/kube-bench /kube-bench/
&&
chmod
+x /kube-bench/kube-bench
RUN
cp
-r
/go/src/github.com/aquasecurity/kube-bench/cfg cfg
# When Docker Hub supports it, we would split this into a multi-stage build with the second part based on, say, alpine for size
FROM
alpine:latest
WORKDIR
/
WORKDIR
/
ADD
entrypoint.sh /entrypoint.sh
COPY
--from=0 /go/bin/kube-bench /kube-bench
COPY
cfg cfg
COPY
entrypoint.sh /entrypoint.sh
ENTRYPOINT
/entrypoint.sh
ENTRYPOINT
/entrypoint.sh
# Build-time metadata as defined at http://label-schema.org
# Build-time metadata as defined at http://label-schema.org
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment