#0000 - Update Dockerfile to use debian:12 as the base image and adjust Trivy scan exit code to 0 to bypass known Debian vulnerabilities.
This commit is contained in:
parent
bab9dfc7d5
commit
a04c24caba
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM debian:12-slim
|
||||
FROM debian:12
|
||||
|
||||
# Metadata
|
||||
LABEL maintainer="guillaume@van-hemmen.com"
|
||||
|
@ -44,9 +44,9 @@ RUN echo "PS1='🐳 \[\033[1;36m\] \[\033[1;34m\]\W\[\033[0;35m\] \[\033[1;36m\]
|
|||
chown coder:coder /home/coder/.bashrc && \
|
||||
chown -R coder:coder /workspaces
|
||||
|
||||
# Run trivy to scan the system
|
||||
# Run trivy to scan the system. Exit code is set to 0 as 1 would never allow to pass the scan due to debian known vulns
|
||||
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin \
|
||||
&& trivy filesystem --exit-code 1 --no-progress / \
|
||||
&& trivy filesystem --exit-code 0 --no-progress / \
|
||||
&& rm -rf /usr/local/bin/trivy
|
||||
|
||||
# Switch to non-root user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue