v2: Vault integration - read credentials from Vaultwarden with disk cache fallback

This commit is contained in:
sascha 2026-04-18 10:24:53 +02:00
parent a85a3175cd
commit 09bbc47d6c
4 changed files with 191 additions and 41 deletions

View file

@ -1,7 +1,17 @@
FROM python:3.13-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends curl unzip && \
curl -sL 'https://vault.bitwarden.com/download/?app=cli&platform=linux' -o /tmp/bw.zip && \
unzip /tmp/bw.zip -d /usr/local/bin/ && chmod +x /usr/local/bin/bw && \
rm /tmp/bw.zip && apt-get purge -y curl unzip && apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
EXPOSE 8888
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8888"]
ENTRYPOINT ["./entrypoint.sh"]