forked from nlextract/NLExtract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (26 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM osgeo/gdal:ubuntu-small-latest
LABEL maintainer="Just van den Broecke <[email protected]>"
# ARGS
ARG TIMEZONE="Europe/Amsterdam"
ARG POSTGRES_VERSION="11"
# ENV settings
ENV TZ=${TIMEZONE} \
DEBIAN_FRONTEND="noninteractive" \
DEB_PACKAGES="wget unzip zip postgresql-client-${POSTGRES_VERSION} openssh-client python3-lxml python3-psycopg2 python3-deprecated python3-openpyxl python3-xlrd" \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE="DontWarn"
# https://www.ubuntuupdates.org/ppa/postgresql?dist=focal-pgdg need PG client version 10
# or use ARGS for other versions
RUN \
apt-get --no-install-recommends install -y gnupg \
&& curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' \
&& apt-get update \
&& apt-get --no-install-recommends install -y ${DEB_PACKAGES} \
&& cp /usr/share/zoneinfo/${TZ} /etc/localtime \
&& dpkg-reconfigure --frontend=noninteractive tzdata
# Add Source Code under /nlx and make it working dir
ADD . /nlx
WORKDIR /nlx
# Run examples
# Default with testdata
# docker run --rm nlextract/nlextract:latest bagv2/etl/etl.sh