diff --git a/README.md b/README.md index ed5773fc..37a2af0b 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ To review the imported vulnerabilities in GCP: gcloud artifacts docker images list $repo \ --show-occurrences \ --format json \ - --occurrence-filter 'kind="VULNERABILITY" AND noteProjectId="$project" AND resource_url="$image" AND noteId="CVE-2005-2541"' + --occurrence-filter "kind=\"VULNERABILITY\" AND resource_url=\"https://$image\"" ``` You can also navigate to Artifact Registry to view the vulnerabilities there. diff --git a/examples/apps/django/Dockerfile b/examples/apps/django/Dockerfile index 11805bfa..5077bcff 100644 --- a/examples/apps/django/Dockerfile +++ b/examples/apps/django/Dockerfile @@ -1,24 +1,8 @@ -# syntax=docker/dockerfile:1.4 - -FROM --platform=$BUILDPLATFORM python:3.7-alpine AS builder -EXPOSE 8000 +FROM python:3.7-alpine AS builder +EXPOSE 8080 WORKDIR /app COPY requirements.txt /app RUN pip3 install -r requirements.txt --no-cache-dir COPY . /app ENTRYPOINT ["python3"] -CMD ["manage.py", "runserver", "0.0.0.0:8000"] - -FROM builder as dev-envs -RUN <