From 6595082d5016299dd4c41523d6a3c2a0da63874e Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Tue, 20 Feb 2024 09:20:47 -0300 Subject: [PATCH] Downloading the CLI directly from Bitwarden's site --- Dockerfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b61473a..1f01dd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,17 @@ -FROM tangowithfoxtrot/bw-cli as builder - FROM python:3.11.0-slim-bullseye -COPY --from=builder /usr/local/bin/bw /bin/bw +RUN apt-get update && \ + apt-get install -y --no-install-recommends wget unzip && \ + wget -O "bw.zip" "https://vault.bitwarden.com/download/?app=cli&platform=linux" && \ + unzip bw.zip && \ + chmod +x ./bw && \ + mv ./bw /usr/local/bin/bw && \ + apt-get purge -y --auto-remove wget unzip && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* && \ + rm -rf bw.zip WORKDIR /bitwarden-to-keepass - COPY . . RUN pip install --no-cache-dir --upgrade pip && \