view Dockerfile @ 420:be38eec5cc25

fix: Fix email adresses The email adresses of the testusers contained non-ASCII-chars. According to rfc6531 this is allowed. But restrictions are allowed. We do not support non-ASCII-characters in emails. https://tools.ietf.org/html/rfc6531
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 16 Aug 2018 13:47:30 +0200
parents c1047fd04a3a
children 01deefb7ec7a
line wrap: on
line source

FROM ubuntu:bionic
LABEL authors="tom.gottfried@intevation.de"

RUN sed -i 's/$/ universe/' /etc/apt/sources.list

RUN apt-get update &&\
    apt-get -y install --no-install-recommends \
            make git golang-go golang-github-gorilla-context-dev

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"]

# Run with e.g.
# docker build -t gemma_backend .
# docker run --name gemma_backend -v $PWD:/opt/gemma -d -p 8200:8000 \
#            --link your_gemma_db:gemma_db gemma_backend