From 87090a5ae8120778180be68bf74a47eb2d704516 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 4 Nov 2021 15:32:07 -0600 Subject: [PATCH] Dockerfile: Install pydantic with --no-binary This is to reduce the size of the resulting Docker image, apparently from 969MB down to 861MB Fixes #15 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 035429278..9970dc11a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,6 +92,8 @@ RUN \ && if [ "$BUILD_DEV_IMAGE" = "true" ] ; then pip3 install -r requirements-dev.txt; fi \ # Temporary fix for elasticsearch-dsl module not available as deb package in bionic && pip3 install elasticsearch-dsl \ + # Reduce size of Docker image by not installing pydantic binary package + && pip3 install --no-binary pydantic pydantic \ && pip3 install -e . \ # OGC schemas local setup && mkdir /schemas.opengis.net \