fix: config symlink
All checks were successful
Release to Gitea Container Registry / build_and_push (push) Successful in 13s

This commit is contained in:
Stixx 2024-11-05 17:14:12 +01:00
parent cb913c3a5c
commit 3a060cdf09
3 changed files with 7 additions and 5 deletions

View File

@ -4,9 +4,10 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="deaf6285-9bb5-4b4c-89a9-b0adf21548ad" name="Changes" comment="">
<list default="true" id="deaf6285-9bb5-4b4c-89a9-b0adf21548ad" name="Changes" comment="fix: docker config symlink">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Dockerfile" beforeDir="false" afterPath="$PROJECT_DIR$/Dockerfile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/start.sh" beforeDir="false" afterPath="$PROJECT_DIR$/start.sh" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -215,6 +216,7 @@
<MESSAGE value="chore: fixing CloudronManifest" />
<MESSAGE value="chore: CloudronManifest Dockerfile" />
<MESSAGE value="fix: start.sh permissions" />
<option name="LAST_COMMIT_MESSAGE" value="fix: start.sh permissions" />
<MESSAGE value="fix: docker config symlink" />
<option name="LAST_COMMIT_MESSAGE" value="fix: docker config symlink" />
</component>
</project>

View File

@ -45,9 +45,6 @@ LABEL cloudronManifestPath="CloudronManifest.json"
VOLUME [ "/app/data" ]
EXPOSE 3000
RUN mkdir /app/data
RUN ln -s /app/config.yml /app/data/config.yml
ENV DEBUG="blossom-server,blossom-server:*"
CMD [ "/app/start.sh" ]

View File

@ -3,5 +3,8 @@
echo "==> Changing ownership"
chown -R cloudron:cloudron /app/data
echo "==> Symlink the config.yml to the editable /app/data directory"
ln -s /app/config.yml /app/data/config.yml
echo "==> Starting Blossom"
exec /usr/local/bin/gosu cloudron:cloudron node /app