17 lines
583 B
Docker
17 lines
583 B
Docker
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
|
|
ENTRYPOINT ["./entrypoint.sh"]
|