Skip to content

Commit

Permalink
Dockerfile: apt-get update and apt-get upgrade to get latest OS packages
Browse files Browse the repository at this point in the history
It upgrades the OS packages as well as pip itself.

Fixes: #59
Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>
  • Loading branch information
mykaul authored and fruch committed Dec 4, 2023
1 parent 426fa0e commit 1e43c1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ RUN pip install --user .


FROM python:3.11-slim-bullseye AS build-image

# Upgrade packages to the latest, pip as well.
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade --no-cache-dir pip

COPY --from=compile-image /root/.local /root/.local

# Make sure scripts in .local are usable:
Expand Down

0 comments on commit 1e43c1e

Please sign in to comment.