Mercurial > gemma
comparison docker/Dockerfile.backend @ 4465:0ad75dd3d77c
Adjusted dockerfile for backend to use latest Go release and Go modules. Untested!
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 23 Sep 2019 15:35:27 +0200 |
parents | a6f18b3ccab1 |
children | 1518289c5168 |
comparison
equal
deleted
inserted
replaced
4464:707450608829 | 4465:0ad75dd3d77c |
---|---|
3 LABEL description="Contains software from gemma, for right holders and\ | 3 LABEL description="Contains software from gemma, for right holders and\ |
4 licensing infos, see https://hg.intevation.de/gemma ." | 4 licensing infos, see https://hg.intevation.de/gemma ." |
5 | 5 |
6 RUN sed -i 's/\(deb.*\)$/\1 universe/' /etc/apt/sources.list | 6 RUN sed -i 's/\(deb.*\)$/\1 universe/' /etc/apt/sources.list |
7 | 7 |
8 RUN apt-get update &&\ | 8 RUN add-apt-repository ppa:longsleep/golang-backports\ |
9 apt-get update &&\ | |
9 apt-get -y install --no-install-recommends libxml2-utils\ | 10 apt-get -y install --no-install-recommends libxml2-utils\ |
10 make git golang-go \ | 11 make git golang-go \ |
11 ca-certificates | 12 ca-certificates |
12 | 13 |
13 WORKDIR /opt/gemma | 14 WORKDIR /opt/gemma |
14 | 15 |
15 # Copy only backend stuff | 16 # Copy only backend stuff |
16 COPY 3rdpartylibs.sh ./ | 17 COPY go.mod ./ |
18 COPY go.sum ./ | |
17 COPY pkg ./pkg/ | 19 COPY pkg ./pkg/ |
18 COPY cmd ./cmd/ | 20 COPY cmd ./cmd/ |
19 COPY Makefile ./ | 21 COPY Makefile ./ |
20 COPY example_conf.toml ./ | 22 COPY example_conf.toml ./ |
21 | 23 |