Skip to content

Commit

Permalink
Dockerfile: Install pydantic with --no-binary
Browse files Browse the repository at this point in the history
This is to reduce the size of the resulting Docker image,
apparently from 969MB down to 861MB

Fixes OpenDRR#15
  • Loading branch information
anthonyfok committed Nov 4, 2021
1 parent 49b0f85 commit 87090a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 87090a5

Please sign in to comment.