comparison docker/Dockerfile.backend @ 561:8f075ae6cf33

Improve docker usage and related docs Move backend Dockerfile to canonical place and describe more of the setup in README.
author Tom Gottfried <tom@intevation.de>
date Mon, 03 Sep 2018 19:07:00 +0200
parents Dockerfile@01deefb7ec7a
children ce24990b3d5c
comparison
equal deleted inserted replaced
560:66073a476baf 561:8f075ae6cf33
1 FROM ubuntu:bionic
2 LABEL authors="tom.gottfried@intevation.de"
3
4 RUN sed -i 's/\(deb.*\)$/\1 universe/' /etc/apt/sources.list
5
6 RUN apt-get update &&\
7 apt-get -y install --no-install-recommends \
8 make git golang-go golang-github-gorilla-context-dev
9
10 WORKDIR /opt/gemma
11
12 # Copy only backend stuff
13 COPY 3rdpartylibs.sh ./
14 COPY pkg ./pkg/
15 COPY cmd ./cmd/
16 COPY Makefile ./
17 COPY example_conf.toml ./
18
19 RUN make install
20
21 EXPOSE 8000
22
23 CMD ["/usr/local/bin/gemma", "-c", "/opt/gemma/example_conf.toml"]