comparison docker/backend-dev-demo/Dockerfile @ 3511:db0f4d419448

docker: add demo images and compose file
author Goffi <goffi@goffi.org>
date Fri, 23 Apr 2021 09:59:16 +0200
parents
children d5fd630b57bb
comparison
equal deleted inserted replaced
3510:059742e925f2 3511:db0f4d419448
1 FROM libervia/backend:dev
2
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
4
5 USER root
6
7 # we install pre-generated demo certificates so they can be trusted
8 COPY --chown=root:root certificates/minica.pem /usr/local/share/ca-certificates/minica.crt
9 COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/libervia/certificates/server1.test.pem
10 COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/libervia/certificates/server1.test-key.pem
11 RUN update-ca-certificates
12
13 COPY --chown=root:root libervia.conf /etc/libervia.conf
14
15 USER libervia
16
17 RUN ./entrypoint.sh \
18 # we create the file sharing component which will autoconnect when backend is started
19 jp profile create file_sharing -j files.server1.test -p "" --xmpp-password test_e2e -C file_sharing -A && \
20 libervia-backend stop
21
22 RUN ./entrypoint.sh \
23 # and a demo account
24 jp profile create demo -j demo@server1.test -p "demo" && \
25 libervia-backend stop
26
27 USER libervia
28 # HTTP Upload
29 EXPOSE 7777