From d1550df17ac12a0b133aed5ab382c789d3274c53 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Wed, 9 Feb 2022 12:14:37 +0100 Subject: [PATCH] fix: Ensure latest Alpine packages are used --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34d0596..f36ceaa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,15 @@ ARG DISTRO_VERSION="3.15" # Grab a fresh copy of the image and install GCC FROM python:${RUNTIME_VERSION}-alpine${DISTRO_VERSION} AS python-alpine # Install GCC (Alpine uses musl but we compile and link dependencies with GCC) -RUN apk add --no-cache \ +RUN apk upgrade -U --available --no-cache && \ + apk add --no-cache \ libstdc++ # Stage 2 - build function and dependencies FROM python-alpine AS build-image # Install aws-lambda-cpp build dependencies -RUN apk add --no-cache \ +RUN apk upgrade -U --available --no-cache && \ + apk add --no-cache \ build-base \ libtool \ autoconf \