Vizzuality/landgriffon

View on GitHub
data/Dockerfile

Summary

Maintainability
Test Coverage
FROM ghcr.io/osgeo/gdal:ubuntu-full-3.8.5
LABEL maintainer="hello@vizzuality.com"

ENV NODE_OPTIONS=--max_old_space_size=16384

# Silence some apt-get errors
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get --allow-releaseinfo-change update
RUN apt-get install -y apt-utils

RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -

RUN apt-get install -y --no-install-recommends pip make jq postgresql-client time build-essential zip nodejs

RUN npm i -g mapshaper@0.5.66

# install aws cli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
  && unzip -q awscliv2.zip \
  && ./aws/install

RUN pip install -q --upgrade --no-cache-dir pip

COPY ./requirements.txt requirements.txt
RUN pip install -q --no-cache-dir -r requirements.txt

WORKDIR /
RUN mkdir -p data/

COPY ./base_data_importer/ /base_data_importer
COPY gadm_importer/ /gadm_importer
COPY h3_data_importer /h3_data_importer
COPY indicator_coefficient_importer/ /indicator_coefficient_importer
COPY ./Makefile ./Makefile

ENTRYPOINT ["/usr/bin/make"]