Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Grype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tools
Docker
Grype
Commits
66238a36
Commit
66238a36
authored
1 year ago
by
Dmitriy Safronov
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile
parent
356d7285
No related branches found
No related tags found
1 merge request
!6
Update Dockerfile
Pipeline
#61693
failed
12 hours ago
Stage: build
Changes
1
Pipelines
210
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+4
-3
4 additions, 3 deletions
Dockerfile
with
4 additions
and
3 deletions
Dockerfile
+
4
−
3
View file @
66238a36
ARG
DOCKER_REGISTRY=registry.cyberbrain.pw
FROM
anchore/grype:latest
AS
grype
FROM
$DOCKER_REGISTRY/tools/docker/alpine:latest
AS
loader
FROM
$DOCKER_REGISTRY/tools/docker/alpine/main:latest
AS
loader
SHELL
["/bin/ash", "-euo", "pipefail", "-c"]
ENV
GRYPE_CHECK_FOR_APP_UPDATE="false" \
GRYPE_DB_CACHE_DIR="/tmp/db" \
...
...
@@ -10,9 +11,9 @@ COPY --from=grype /grype /bin/grype
RUN
chmod
a+x /bin/grype
&&
\
mkdir
-p
${
GRYPE_DB_CACHE_DIR
}
&&
\
chmod
-R
0777
${
GRYPE_DB_CACHE_DIR
}
ARG
CACHEBUST
=static
ARG
CACHEBUST
RUN
set
-e
;
\
TMP
=
"
${
CACHEBUST
}
"
grype db update
-v
||
(
echo
"Update failed!"
;
exit
1
)
TMP
=
"
${
CACHEBUST
:-
$(
date
-u
+%s
)
}
"
grype db update
-v
||
(
echo
"Update failed!"
;
exit
1
)
FROM
grype
AS
runtime
ENV
GRYPE_CHECK_FOR_APP_UPDATE="false" \
...
...
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