Skip to content

Commit

Permalink
Include CLI binaries for supported password managers
Browse files Browse the repository at this point in the history
  • Loading branch information
tuladhar committed Oct 8, 2024
1 parent e34031f commit 0e4271f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ FROM ruby:3.2.0-alpine
# Install docker/buildx-bin
COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx

# Install 1password/op
COPY --from=1password/op:2 /usr/local/bin/op /usr/local/bin/op

# Set the working directory to /kamal
WORKDIR /kamal

Expand All @@ -13,11 +16,14 @@ COPY Gemfile Gemfile.lock kamal.gemspec ./
# Required in kamal.gemspec
COPY lib/kamal/version.rb /kamal/lib/kamal/version.rb

# Install system dependencies
RUN apk add --no-cache build-base git docker openrc openssh-client-default \
# Install system dependencies including CLI for supported password managers
RUN apk add --no-cache build-base git docker openrc openssh-client-default npm \
&& rc-update add docker boot \
&& gem install bundler --version=2.4.3 \
&& bundle install
&& bundle install \
&& npm install -g @bitwarden/cli \
&& echo "https://dl-cdn.alpinelinux.org/alpine/v3.17/community" >> /etc/apk/repositories \
&& apk add --no-cache lastpass-cli

# Copy the rest of our application code into the container.
# We do this after bundle install, to avoid having to run bundle
Expand Down

0 comments on commit 0e4271f

Please sign in to comment.