diff --git a/Dockerfile b/Dockerfile index d43c55a..f5ee367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,4 @@ EXPOSE 3000 ENV DEBUG="blossom-server,blossom-server:*" ENV BLOSSOM_CONFIG="data/config.yml" -COPY config.example.yml /app/data/config.yml - CMD [ "/app/start.sh" ] diff --git a/start.sh b/start.sh index 30fcd0a..e8ddbac 100644 --- a/start.sh +++ b/start.sh @@ -1,5 +1,11 @@ #!/bin/bash +echo "==> Copy config in not existing" +if [[ ! -f /app/data/config.yml ]]; then + echo "=> First run, copying config files" + cp config.example.yml /app/data/config.yml +fi + echo "==> Changing ownership" chown -R cloudron:cloudron /app/data