Skip to content

Commit

Permalink
Reduce Docker image size of wetterdienst-full from 1.5G to 900MB
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Sep 21, 2020
1 parent 7c92d63 commit be36706
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/release/full/Dockerfile
@@ -1,4 +1,5 @@
FROM python:3.8.5-slim
# 1. Build GDAL-python
FROM python:3.8.5-slim as build-step

# TODO: This currently installs GDAL==2.4.0. For a more recent version, ...
#
Expand All @@ -24,5 +25,16 @@ RUN pip install GDAL==$(gdal-config --version)
# Install wradlib.
RUN pip install wradlib


# 2. Main
FROM python:3.8.5-slim

# Install libgdal.
RUN apt-get update
RUN apt-get --yes install libgdal20

# Copy build artefacts from first build step.
COPY --from=build-step /usr/local/lib /usr/local/lib

# Install Wetterdienst.
RUN pip install wetterdienst[excel]

0 comments on commit be36706

Please sign in to comment.