Add support for extensions
Some checks failed
Test and build Docker image / docker (push) Failing after 3s
Some checks failed
Test and build Docker image / docker (push) Failing after 3s
This commit is contained in:
parent
64a116d947
commit
793f67db42
39 changed files with 3670 additions and 1309 deletions
|
|
@ -1,7 +1,7 @@
|
|||
FROM python:3.14-slim
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||
RUN useradd --create-home botuser && \
|
||||
mkdir -p /home/botuser/discord-rss-bot/ /home/botuser/.local/share/discord_rss_bot/ && \
|
||||
mkdir -p /home/botuser/discord-rss-bot/ /home/botuser/.local/share/discord_rss_bot/ /home/botuser/extensions/ && \
|
||||
chown -R botuser:botuser /home/botuser/
|
||||
USER botuser
|
||||
WORKDIR /home/botuser/discord-rss-bot
|
||||
|
|
@ -11,5 +11,9 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
|||
COPY --chown=botuser:botuser discord_rss_bot/ /home/botuser/discord-rss-bot/discord_rss_bot/
|
||||
EXPOSE 5000
|
||||
VOLUME ["/home/botuser/.local/share/discord_rss_bot/"]
|
||||
|
||||
# Extensions directory — bind-mount your own plugins here.
|
||||
ENV EXTENSIONS_DIR=/home/botuser/extensions
|
||||
|
||||
HEALTHCHECK --interval=10m --timeout=5s CMD ["uv", "run", "./discord_rss_bot/healthcheck.py"]
|
||||
CMD ["uv", "run", "uvicorn", "discord_rss_bot.main:app", "--host=0.0.0.0", "--port=5000", "--proxy-headers", "--forwarded-allow-ips='*'", "--log-level", "debug"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue