Added bitwarden-cli Dockerfile:w
All checks were successful
Check with kubeconform / lint (push) Successful in 5s
All checks were successful
Check with kubeconform / lint (push) Successful in 5s
This commit is contained in:
26
k8s/apps/vaultwarden/Dockerfile-bitwarden-cli
Normal file
26
k8s/apps/vaultwarden/Dockerfile-bitwarden-cli
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM debian:sid
|
||||||
|
|
||||||
|
ENV BW_CLI_VERSION=2024.7.2
|
||||||
|
|
||||||
|
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 && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
// Entrypoint content
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
bw config server ${BW_HOST}
|
||||||
|
export BW_SESSION=$(bw login ${BW_USER} --passwordenv BW_PASSWORD --raw)
|
||||||
|
bw unlock --check
|
||||||
|
echo 'Running `bw server` on port 8087'
|
||||||
|
bw serve --hostname 0.0.0.0 #--disable-origin-protection
|
||||||
|
// End Entrypoint content
|
||||||
|
|
||||||
|
COPY entrypoint.sh /
|
||||||
|
CMD ["/entrypoint.sh"]
|
Reference in New Issue
Block a user