view docker/Dockerfile.backend @ 4509:8ac545a7f60d

Translated using Weblate (Romanian) Currently translated at 77.4% (333 of 430 strings) Translation: Gemma/client Translate-URL: https://hosted.weblate.org/projects/gemma/client/ro/
author MANESCU CARMEN <compania@acn.ro>
date Wed, 02 Oct 2019 14:11:21 +0200
parents 1518289c5168
children 7fb29172befa
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 add-apt-repository ppa:longsleep/golang-backports &&\
    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 go.mod ./
COPY go.sum ./
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"]