switch to npm image

This commit is contained in:
Jochen Maes 2023-11-18 12:20:41 +01:00
parent 7e368e5bf6
commit 431284bb60

View File

@ -1,15 +1,8 @@
FROM debian:bookworm FROM node:alpine
ENV BW_CLI_VERSION=2023.4.0 ENV BW_CLI_VERSION=2023.10.0
RUN apt update && \
apt install -y wget unzip && \
wget https://github.com/bitwarden/clients/releases/download/cli-v${BW_CLI_VERSION}/bw-linux-${BW_CLI_VERSION}.zip && \
unzip bw-linux-${BW_CLI_VERSION}.zip && \
chmod +x bw && \
mv bw /usr/local/bin/bw && \
rm -rfv *.zip
RUN npm install -g @bitwarden/cli
COPY entrypoint.sh / COPY entrypoint.sh /
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]