feat: upgrade Alpine to 3.20, libexecinfo fixes, make tests work
This commit is contained in:
parent
6124f0454b
commit
208749d01e
@ -1,9 +1,6 @@
|
||||
# https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/
|
||||
# libexec is missing from >=3.17
|
||||
|
||||
# Stage 1 - bundle base image + runtime
|
||||
FROM python:3.12-alpine3.19 AS python-alpine
|
||||
ARG ALPINE="v3.19"
|
||||
FROM python:3.12-alpine3.20 AS python-alpine
|
||||
ARG ALPINE="v3.20"
|
||||
|
||||
# Install GCC (Alpine uses musl but we compile and link dependencies with GCC)
|
||||
RUN echo "@kubezero https://cdn.zero-downtime.net/alpine/${ALPINE}/kubezero" >> /etc/apk/repositories && \
|
||||
@ -29,7 +26,7 @@ RUN apk --no-cache add \
|
||||
libcurl \
|
||||
libffi-dev \
|
||||
openssl-dev \
|
||||
libexecinfo-dev@kubezero
|
||||
elfutils-dev
|
||||
# cargo
|
||||
|
||||
# Install requirements
|
||||
|
@ -9,6 +9,7 @@ buildah copy $ctr dev-requirements.txt .flake8 .
|
||||
buildah copy $ctr aws-lambda-rie
|
||||
buildah copy $ctr tests/ tests/
|
||||
|
||||
buildah run $ctr apk add zstd-libs
|
||||
buildah run $ctr pip install -r dev-requirements.txt --target .
|
||||
|
||||
buildah run $ctr python -m flake8 app.py
|
||||
|
Loading…
Reference in New Issue
Block a user