From de3df61608f7bb33f67dcdfd51f0d37f65eba472 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 12 Sep 2024 19:03:44 +0000 Subject: [PATCH] Add libzstd to final image --- Dockerfile | 3 +++ run_tests.sh | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ee329e4..023c083 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,9 @@ RUN sed -i -e "s/^__version__ =.*/__version__ = \"${TAG}\"/" /app/app.py # Stage 3 - final runtime image FROM python-alpine +RUN apk --no-cache add \ + zstd-libs + WORKDIR /app COPY --from=build-image /app /app diff --git a/run_tests.sh b/run_tests.sh index f6ff820..fb40eca 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -9,7 +9,6 @@ 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