Created
June 22, 2023 20:08
-
-
Save scottisloud/795d6f2f44b0d0693f07f84f6e0e15ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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