view docker/Dockerfile.backend @ 2455:54c9fe587fe6

Subdivide SQL function to prepare for improved error handling The context of an error (e.g. the function in which it occured) can be inferred by the database client. Not doing all in one statement will render the context more meaningful.
author Tom Gottfried <tom@intevation.de>
date Fri, 01 Mar 2019 18:38:02 +0100
parents 153c77e529dc
children 718ec88fbeed
line wrap: on
line source

FROM ubuntu:bionic
LABEL authors="tom.gottfried@intevation.de"
LABEL description="Contains software from gemma, for right holders and\
 licensing infos, see https://hg.intevation.de/gemma ."

RUN sed -i 's/\(deb.*\)$/\1 universe/' /etc/apt/sources.list

RUN apt-get update &&\
    apt-get -y install --no-install-recommends libxml2-utils\
            make git golang-go \
            ca-certificates

WORKDIR /opt/gemma

# Copy only backend stuff
COPY 3rdpartylibs.sh ./
COPY pkg ./pkg/
COPY cmd ./cmd/
COPY Makefile ./
COPY example_conf.toml ./

RUN make install

EXPOSE 8000

CMD ["/usr/local/bin/gemma", "-c", "/opt/gemma/example_conf.toml"]