From 65ec3288afe17f563964c8e19a7649439722ac0c Mon Sep 17 00:00:00 2001 From: Dylan McReynolds Date: Fri, 22 Nov 2024 15:16:11 -0800 Subject: [PATCH 1/2] move curl and httpie to final layer in dockerfile --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c71e5a2b..de183aa43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,6 @@ FROM python:3.12-slim as builder # We need gcc to compile thriftpy2, a secondary dependency. RUN apt-get -y update && apt-get install -y git gcc -# We want cURL and httpie so healthchecks can be performed within the container -RUN apt-get install -y curl httpie - WORKDIR /code # Ensure logs and error messages do not get stuck in a buffer. @@ -52,6 +49,8 @@ FROM python:3.12-slim as runner ENV VIRTUAL_ENV=/opt/venv ENV PATH="$VIRTUAL_ENV/bin:$PATH" COPY --from=builder $VIRTUAL_ENV $VIRTUAL_ENV +# We want cURL and httpie so healthchecks can be performed within the container +RUN apt-get update && apt-get install -y curl httpie WORKDIR /deploy RUN mkdir /deploy/config From 3487f85e794a97357d271d8b8ee6b7adbb0ee40b Mon Sep 17 00:00:00 2001 From: Dylan McReynolds Date: Fri, 22 Nov 2024 15:25:39 -0800 Subject: [PATCH 2/2] docker fix changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1438052e4..8c4e970ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ Write the date in place of the "Unreleased" in the case a new version is release ## Unreleased +- Fix curl and httpie installation in docker image. + ### Added - Add HTTP endpoint `PATCH /array/full/{path}` to enable updating and