From a0ec634de46492136f14ded5f6ab0ee1dd48440b Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Wed, 21 Aug 2024 13:31:09 -0500 Subject: [PATCH 1/2] Actually install the application in the image I broke this in the previous commit. Shame on me! --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index af42244..ba04978 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,9 @@ ENV PATH="/opt/venv/bin:$PATH" COPY . /usr/src/app +# Now install sdx-controller and the WSGI server. +RUN pip install --no-cache-dir .[wsgi] + # The final image. FROM python:3.9-slim-bullseye AS sdx-runtime-image From 21d15e2181f26803b7c28138e587396f553dd99e Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Wed, 21 Aug 2024 13:31:40 -0500 Subject: [PATCH 2/2] Ignore hadolint warning DL3013 --- .hadolint.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.hadolint.yaml b/.hadolint.yaml index 4895418..45e6f04 100644 --- a/.hadolint.yaml +++ b/.hadolint.yaml @@ -2,3 +2,7 @@ ignored: # DL3008 asks to pin Debian package versions, but that way we will # miss out on security updates. - DL3008 + + # DL3013 asks to pin package versions. We mostly do, but hadolint + # can't check extras (such as `[wsgi]`), which we install. + - DL3013