More dockerfile changes, thanks Just

This commit is contained in:
Angelos Tzotsos
2021-01-02 13:03:03 +02:00
parent a638ef78c5
commit 295ce4e239
+7 -4
View File
@@ -31,7 +31,7 @@
#
# =================================================================
FROM ubuntu:focal
FROM ubuntu:focal-20201106
LABEL maintainer="Just van den Broecke <justb4@gmail.com>"
@@ -53,9 +53,13 @@ LABEL maintainer="Just van den Broecke <justb4@gmail.com>"
# via Docker Volume mapping or within a docker-compose.yml file. See example at
# https://github.com/geopython/demo.pygeoapi.io/tree/master/services/pygeoapi
# Build arguments
# add "--build-arg BUILD_DEV_IMAGE=true" to Docker build command when building with test/doc tools
# ARGS
ARG TIMEZONE="Europe/London"
ARG LOCALE="en_US.UTF-8"
ARG BUILD_DEV_IMAGE="false"
ARG ADD_DEB_PACKAGES="python3-gdal python3-psycopg2 python3-xarray python3-scipy python3-netcdf4 python3-rasterio python3-fiona python3-pandas python3-pyproj python3-elasticsearch python3-pymongo python3-zarr python3-tinydb"
# ENV settings
@@ -80,9 +84,8 @@ RUN \
# Install pygeoapi
&& cd /pygeoapi \
&& pip3 install -r requirements.txt \
&& pip3 install -r requirements-dev.txt \
&& pip3 install -r requirements-manager.txt \
&& pip3 install -r requirements-provider.txt \
# Optionally add development/test/doc packages
&& if [ "$BUILD_DEV_IMAGE" = "true" ] ; then pip3 install -r requirements-dev.txt; fi \
&& pip3 install -e . \
# OGC schemas local setup
&& mkdir /schemas.opengis.net \