address review
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
b42dea27a2
commit
43412c7b06
2 changed files with 4 additions and 3 deletions
|
@ -15,5 +15,5 @@ RUN set -ex; \
|
|||
COPY --chmod=775 start.sh /start.sh
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT /start.sh
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
CMD ["java","-jar","nextcloud-dlna.jar"]
|
||||
|
|
5
start.sh
5
start.sh
|
@ -1,11 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Wait for Nextcloud to come online
|
||||
if [ -n "$NC_DOMAIN" ] && [ "$NC_PORT" ]; then
|
||||
if [ -n "$NC_DOMAIN" ] && [ -n "$NC_PORT" ]; then
|
||||
while ! nc -z "$NC_DOMAIN" "$NC_PORT"; do
|
||||
echo "Waiting for Nextcloud to start..."
|
||||
echo "Waiting for Nextcloud to start on $NC_DOMAIN:$NC_PORT..."
|
||||
sleep 5
|
||||
done
|
||||
echo "Nextcloud found on $NC_DOMAIN:$NC_PORT!"
|
||||
fi
|
||||
|
||||
# Execute CMD
|
||||
|
|
Loading…
Reference in a new issue