Mercurial > gemma
comparison Dockerfile @ 402:20d2edbc863d
Add install target for backend and use in Dockerfile
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 14 Aug 2018 19:37:36 +0200 |
parents | 6d145ee0a097 |
children | c1047fd04a3a |
comparison
equal
deleted
inserted
replaced
401:746d8c9c35f4 | 402:20d2edbc863d |
---|---|
17 COPY controllers ./controllers/ | 17 COPY controllers ./controllers/ |
18 COPY misc ./misc/ | 18 COPY misc ./misc/ |
19 COPY Makefile ./ | 19 COPY Makefile ./ |
20 COPY example_conf.toml ./ | 20 COPY example_conf.toml ./ |
21 | 21 |
22 RUN make gemma && mkdir /opt/bin && mv cmd/gemma/gemma /opt/bin/ | 22 RUN make install |
23 | 23 |
24 EXPOSE 8000 | 24 EXPOSE 8000 |
25 | 25 |
26 CMD ["/opt/bin/gemma", "-c", "/opt/gemma/example_conf.toml"] | 26 CMD ["/usr/local/bin/gemma", "-c", "/opt/gemma/example_conf.toml"] |
27 | 27 |
28 # Run with e.g. | 28 # Run with e.g. |
29 # docker build -t gemma_backend . | 29 # docker build -t gemma_backend . |
30 # docker run --name gemma_backend -v $PWD:/opt/gemma -d -p 8200:8000 \ | 30 # docker run --name gemma_backend -v $PWD:/opt/gemma -d -p 8200:8000 \ |
31 # --link your_gemma_db:gemma_db gemma_backend | 31 # --link your_gemma_db:gemma_db gemma_backend |
32 # | |
33 # To rebuild inside the container: | |
34 # ln -sf /opt/gemma/cmd/gemma/gemma /opt/bin/gemma | |
35 # make gemma |