Skip to content

Commit

Permalink
chore: cleanup bw dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Jan 10, 2024
1 parent 238bff4 commit ca29e72
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions apps/bitwarden-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ FROM debian:sid

ARG TARGETPLATFORM
ARG VERSION
ARG CHANNEL

WORKDIR /usr/local/bin
RUN apt update && apt install -y curl unzip libsecret-1-0 jq
RUN curl -LO "https://github.com/bitwarden/clients/releases/download/cli-v{$VERSION}/bw-linux-{$VERSION}.zip" \
&& unzip *.zip && chmod +x ./bw

RUN rm *.zip

COPY entrypoint.sh /
RUN \
apt update && apt install -y curl unzip libsecret-1-0 jq \
&& curl -LO "https://github.com/bitwarden/clients/releases/download/cli-v{$VERSION}/bw-linux-{$VERSION}.zip" \
&& unzip *.zip && chmod +x ./bw
&& rm -rf *.zip

COPY ./apps/bitwarden-cli/entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]

LABEL org.opencontainers.image.source="https://github.com/bitwarden/clients"

0 comments on commit ca29e72

Please sign in to comment.