diff --git a/.github/workflows/dockerhub-description.yaml b/.github/workflows/dockerhub-description.yaml index fa3ea16..e3443e6 100644 --- a/.github/workflows/dockerhub-description.yaml +++ b/.github/workflows/dockerhub-description.yaml @@ -17,6 +17,6 @@ jobs: with: username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PAT }} - repository: peterevans/dockerhub-description + repository: ${{ github.repository }} short-description: ${{ github.event.repository.description }} enable-url-completion: true diff --git a/Dockerfile b/Dockerfile index f90d867..3baf298 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM python:3-slim AS builder RUN apt-get update && \ + apt-get -y upgrade && \ apt-get install --no-install-recommends -y build-essential && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -18,6 +19,11 @@ RUN .venv/bin/pip3 install --no-cache-dir --upgrade -r requirements.txt # production stage -------------------------------------------------------------------------------- FROM python:3-slim AS production +RUN apt-get update && \ + apt-get -y upgrade && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + WORKDIR /usr/src/app COPY . .