Skip to content
Snippets Groups Projects
Commit 66238a36 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

Update Dockerfile

parent 356d7285
No related branches found
No related tags found
1 merge request!6Update Dockerfile
Pipeline #61693 failed
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" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment