UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
O
Opensource
quay
clair
Commits
07c6cbe8
Commit
07c6cbe8
authored
Jun 15, 2021
by
sean.melissari
Browse files
fix missing binary
parent
a9d9704f
Pipeline
#317086
passed with stages
in 11 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
Dockerfile
Dockerfile
+9
-4
No files found.
Dockerfile
View file @
07c6cbe8
...
...
@@ -18,6 +18,9 @@ RUN dnf install -y gcc make && \
FROM
${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
ENV
CLAIR_CONF=/config/config.yaml CLAIR_MODE=combo
ENV
SSL_CERT_DIR="/etc/ssl/certs:/etc/pki/tls/certs:/var/run/certs"
RUN
groupadd
-g
1000 clair
&&
\
useradd
-r
-u
1000
-m
-s
/sbin/nologin
-g
clair clair
&&
\
mkdir
/etc/clair
&&
\
...
...
@@ -27,15 +30,17 @@ RUN groupadd -g 1000 clair && \
rm
-rf
/var/cache/dnf
&&
\
chmod
-s
/usr/libexec/openssh/ssh-keysign
COPY
--from=base /clair /clair
COPY
--from=base /usr/bin/dumb-init /usr/bin/dumb-init
COPY
--from=base /bin/clair /bin/clair
COPY
--from=base /bin/clairctl /bin/clairctl
COPY
--from=base /usr/local/bin/dumb-init /usr/local/bin/dumb-init
COPY
--from=build /usr/local/musl/lib/libc.so /usr/local/musl/lib/libc.so
COPY
--from=build /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1
USER
clair
USER
1000
VOLUME
/config
WORKDIR
/run
EXPOSE
6060 6061
HEALTHCHECK
CMD curl -fs http://127.0.0.1:6061/health || curl -fsk https://127.0.0.1:6061/health || exit 1
ENTRYPOINT
["/usr/bin/dumb-init", "--", "/clair"]
ENTRYPOINT
["/usr/
local/
bin/dumb-init", "--", "/
bin/
clair"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment