This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Commit 3d45adc Mathieu Velten
committed
1 parent 1a1abdd commit 3d45adc Copy full SHA for 3d45adc
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
ARG SYNAPSE_VERSION=latest
10
10
11
- # first of all, we create a base image with a postgres server and database ,
12
- # which we can copy into the target image. For repeated rebuilds, this is
13
- # much faster than apt installing postgres each time.
11
+ # First of all, we copy postgres server from the official postgres image ,
12
+ # since for repeated rebuilds, this is much faster than apt installing
13
+ # postgres each time.
14
14
#
15
15
# This trick only works because (a) the Synapse image happens to have all the
16
16
# shared libraries that postgres wants, (b) we use a postgres image based on
17
17
# the same debian version as Synapse's docker image (so the versions of the
18
18
# shared libraries match).
19
19
20
- # now build the final image, based on the Synapse image .
20
+ # We also initialize the database itself at build and not runtime for speed reason .
21
21
22
22
FROM matrixdotorg/synapse-workers:$SYNAPSE_VERSION
23
23
# copy the postgres installation over from the image we built above
You can’t perform that action at this time.
0 commit comments