fix: add missing migrations folder
the build was successful Details

This commit is contained in:
Jan Christian Grünhage 2018-01-14 12:53:31 +01:00
parent d66ef0f4f8
commit 5eb3819bee
Signed by: jcgruenhage
GPG Key ID: 6594C449C633D10C
2 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,11 @@ RUN apk add --no-cache \
&& 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 -R migrations /var/lib/media-repo-migrations \
&& cd / \
&& rm -rf /tmp/* \
&& apk del build-deps
COPY root /
VOLUME /data
VOLUME ["/data", "/media"]
EXPOSE 8000

View File

@ -1,10 +1,9 @@
#!/usr/bin/env sh
chown -R ${UID}:${GID} /data
cd /data
if [ ! -f media-repo.yaml ]; then
cp /etc/media-repo.yaml.sample media-repo.yaml
fi
cp -R /var/lib/media-repo-migrations migrations
chown -R ${UID}:${GID} /data
exec su-exec ${UID}:${GID} media_repo