Fix build: generate settings.json from env vars at runtime
Some checks failed
Deploy / deploy (push) Failing after 53s

settings.json is gitignored (contains token). entrypoint.sh writes it
from OUTLINE_URL / OUTLINE_TOKEN env vars on container start.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-07 21:02:41 +01:00
parent 801ab738d9
commit f661343de0
4 changed files with 22 additions and 1 deletions

View File

@@ -18,7 +18,8 @@ RUN git config --global user.email "sync@local" && \
WORKDIR /work
COPY outline_sync.py webui.py settings.json ./
COPY outline_sync.py webui.py entrypoint.sh ./
RUN chmod +x entrypoint.sh
# Initialise vault with both branches needed by outline_sync.py
RUN git init /vault && \
@@ -31,4 +32,5 @@ RUN git init /vault && \
EXPOSE 8080
ENTRYPOINT ["/work/entrypoint.sh"]
CMD ["uvicorn", "webui:app", "--host", "0.0.0.0", "--port", "8080"]