Skip to content

Commit

Permalink
use already built image
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Jan 30, 2024
1 parent f2f74e1 commit b98d972
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions apps/tf-runner-bitwarden/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
ARG VERSION
FROM node:21.6-bookworm as build
FROM ghcr.io/lildrunkensmurf/bitwarden-cli:2024.1.0 as build

# renovate: datasource=npm depName=@bitwarden/cli versioning=npm
ARG BW_VERSION=2024.1.0
ARG VERSION
ARG TARGETPLATFORM
ARG TARGETARCH
Expand All @@ -15,10 +13,6 @@ LABEL org.opencontainers.image.source="https://github.com/bitwarden/clients"
LABEL org.opencontainers.image.source="https://github.com/hashicorp/terraform"
LABEL org.opencontainers.image.source="https://github.com/weaveworks/tf-controller"

WORKDIR /usr/local/bin

RUN npm i -g @bitwarden/cli@${BW_VERSION}

# renovate: datasource=github-releases depName=hashicorp/terraform versioning=docker
FROM hashicorp/terraform:1.7.1 as terraform
ARG VERSION
Expand All @@ -28,8 +22,6 @@ ARG VERSION

USER root

RUN apk add --no-cache npm \
&& npm i -g commander
COPY --from=build --chown=65532:65532 /usr/local/bin/bw /usr/local/bin/bw
COPY --from=terraform --chown=65532:65532 /bin/terraform /usr/local/bin/terraform

Expand Down

0 comments on commit b98d972

Please sign in to comment.