comparison docker_legacy/salut/Dockerfile @ 164:29873a41aae1

docker: new docker files are now in sat main repos, this one is legacy
author Goffi <goffi@goffi.org>
date Fri, 01 Jan 2021 18:33:52 +0100
parents
children
comparison
equal deleted inserted replaced
163:a63f6d360326 164:29873a41aae1
1 ###############################################################
2 # #
3 # Salut à Toi/salut #
4 # This Dockerfile build a Salut directory prepared for SàT #
5 # Salut à Toi is a multi-frontends multi-purposes XMPP client #
6 # #
7 ###############################################################
8
9 FROM salutatoi/base:latest
10
11 MAINTAINER Goffi <goffi@goffi.org>
12
13 ############################
14 # AUTOMATIC CONFIGURATION #
15 ############################
16
17 COPY scripts/salut /usr/local/bin/
18 RUN chown root:root /usr/local/bin/salut && \
19 chmod 0555 /usr/local/bin/salut && \
20
21 ########
22 # BASE #
23 ########
24
25 cd /usr/share && hg clone https://repos.goffi.org/salut sat_salut && chown -R sat:sat sat_salut && \
26
27 # configuration is really basic in salut, we just use environment to set data
28 sed -i 's/^xmppcomponent =.*$/import os\nxmppcomponent = Component("prosody", 5347, "salut."+os.getenv("DOMAIN"), os.getenv("SAT_SALUT_SECRET"))/' sat_salut/salut.tac
29
30 WORKDIR /usr/share/sat_salut
31
32 USER sat
33
34 ##########
35 # LAUNCH #
36 ##########
37
38 ENTRYPOINT ["salut"]