Skip to content

Instantly share code, notes, and snippets.

@scottisloud
Created June 22, 2023 20:08
Show Gist options
  • Select an option

  • Save scottisloud/795d6f2f44b0d0693f07f84f6e0e15ae to your computer and use it in GitHub Desktop.

Select an option

Save scottisloud/795d6f2f44b0d0693f07f84f6e0e15ae to your computer and use it in GitHub Desktop.
# Dockerfile to build an image with op installed and token set for Service Accounts
FROM alpine
ENV OP_CLI_VERSION v2.18.0
ENV ARCH amd64
ENV OP_SERVICE_ACCOUNT_TOKEN="{YOUR TOKEN HERE}"
RUN apk add curl unzip
RUN curl -sSfo op.zip https://cache.agilebits.com/dist/1P/op2/pkg/${OP_CLI_VERSION}/op_linux_${ARCH}_${OP_CLI_VERSION}.zip \
&& unzip -od /usr/local/bin/ op.zip \
&& rm op.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment