This commit is contained in:
parent
d671ada6b7
commit
d66ef0f4f8
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ RUN apk add --no-cache \
|
|||
&& GOPATH=`pwd`:`pwd`/vendor go build -o bin/media_repo ./src/github.com/turt2live/matrix-media-repo/cmd/media_repo/ \
|
||||
&& GOPATH=`pwd`:`pwd`/vendor go build -o bin/import_synapse ./src/github.com/turt2live/matrix-media-repo/cmd/import_synapse/ \
|
||||
&& cp bin/media_repo bin/import_synapse /usr/local/bin \
|
||||
&& cp config.sample.yaml /etc/media_repo.yaml.sample \
|
||||
&& cp config.sample.yaml /etc/media-repo.yaml.sample \
|
||||
&& cd / \
|
||||
&& rm -rf /tmp/* \
|
||||
&& apk del build-deps
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
chown -R ${UID}:${GID} /data
|
||||
cd /data
|
||||
|
||||
if [ ! -f media_repo.yaml ]; then
|
||||
cp /etc/media_repo.yaml.sample media_repo.yaml
|
||||
if [ ! -f media-repo.yaml ]; then
|
||||
cp /etc/media-repo.yaml.sample media-repo.yaml
|
||||
fi
|
||||
|
||||
exec su-exec ${UID}:${GID} media_repo
|
||||
|
|
Loading…
Reference in a new issue