summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2024-03-09 15:20:16 +0100
committernicolargo <nicolas@nicolargo.com>2024-03-09 15:20:16 +0100
commit573d73f198ea2363b20367b68afa6716d483058f (patch)
tree54b5a98027c3a02d1fca1be3061be9e8556542d1
parent4bbb729d48091a4dff1041e833bdff6916d51e8d (diff)
Force image update
-rw-r--r--docker-files/alpine.Dockerfile5
-rw-r--r--docker-files/ubuntu.Dockerfile12
2 files changed, 13 insertions, 4 deletions
diff --git a/docker-files/alpine.Dockerfile b/docker-files/alpine.Dockerfile
index 1f10075f..f63161bc 100644
--- a/docker-files/alpine.Dockerfile
+++ b/docker-files/alpine.Dockerfile
@@ -17,6 +17,11 @@ ARG PYTHON_VERSION=3.11
# Base layer to be used for building dependencies and the release images
FROM alpine:${IMAGE_VERSION} as base
+# Upgrade the system
+RUN apk update \
+ && apk upgrade --no-cache
+
+# Install the minimal set of packages
RUN apk add --no-cache \
python3 \
curl \
diff --git a/docker-files/ubuntu.Dockerfile b/docker-files/ubuntu.Dockerfile
index be5bc09d..4067d93d 100644
--- a/docker-files/ubuntu.Dockerfile
+++ b/docker-files/ubuntu.Dockerfile
@@ -36,17 +36,21 @@ FROM base as build
ARG PYTHON_VERSION
ARG DEBIAN_FRONTEND=noninteractive
-# Install build-time dependencies
+# Upgrade the system
RUN apt-get update \
- && apt-get install -y --no-install-recommends \
+ && apt-get upgrade -y
+
+# Install build-time dependencies
+RUN apt-get install -y --no-install-recommends \
python3-dev \
python3-venv \
python3-pip \
python3-wheel \
libzmq5 \
musl-dev \
- build-essential \
- && apt-get clean \
+ build-essential
+
+RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN python${PYTHON_VERSION} -m venv --without-pip venv