From 7ed5e997424410c7f8e5290f620daa47effa1eed Mon Sep 17 00:00:00 2001 From: Jeff Culverhouse Date: Mon, 17 Mar 2025 12:51:21 -0400 Subject: [PATCH] minor docker changes --- .github/workflows/dockerhub-description.yaml | 2 +- Dockerfile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 . .