Skip to content

Commit

Permalink
Change: Don't use a pip cache within the container build
Browse files Browse the repository at this point in the history
Shrink the container image size by not storing the pip cache in an image
layer.
  • Loading branch information
bjoernricks committed Aug 24, 2022
1 parent fbcf937 commit 536c47b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .docker/prod.Dockerfile
Expand Up @@ -28,6 +28,8 @@ FROM greenbone/openvas-scanner:${VERSION}

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV PIP_NO_CACHE_DIR off

COPY --from=tools /usr/local/src/bin/ospd-scans /usr/local/bin/
COPY ./config/ospd-openvas.conf /etc/gvm/ospd-openvas.conf
COPY .docker/entrypoint.sh /usr/local/bin/entrypoint
Expand Down

0 comments on commit 536c47b

Please sign in to comment.