Downloading the CLI directly from Bitwarden's site

This commit is contained in:
Roger Gonzalez 2024-02-20 09:20:47 -03:00
parent 938af1ea36
commit 6595082d50
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -1,11 +1,17 @@
FROM tangowithfoxtrot/bw-cli as builder
FROM python:3.11.0-slim-bullseye 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 WORKDIR /bitwarden-to-keepass
COPY . . COPY . .
RUN pip install --no-cache-dir --upgrade pip && \ RUN pip install --no-cache-dir --upgrade pip && \