mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 22:28:15 +00:00
fix outdated cli instructions
This commit is contained in:
@@ -6,32 +6,10 @@ description: "Learn how to use Infisical to inject environment variables into a
|
|||||||
This approach allows you to inject secrets from Infisical directly into your application.
|
This approach allows you to inject secrets from Infisical directly into your application.
|
||||||
This is achieved by installing the Infisical CLI into your docker image and modifying your start command to execute with Infisical.
|
This is achieved by installing the Infisical CLI into your docker image and modifying your start command to execute with Infisical.
|
||||||
|
|
||||||
## Add the Infisical CLI to your Dockerfile
|
## Install the Infisical CLI to your Dockerfile
|
||||||
|
|
||||||
<Tabs>
|
To install the CLI, follow the instructions for your chosen distribution [here](/cli/overview).
|
||||||
<Tab title="Alpine">
|
|
||||||
```dockerfile
|
|
||||||
RUN apk add --no-cache bash curl && curl -1sLf \
|
|
||||||
'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.alpine.sh' | bash \
|
|
||||||
&& apk add infisical
|
|
||||||
```
|
|
||||||
|
|
||||||
</Tab>
|
|
||||||
<Tab title="RedHat/CentOs/Amazon-linux">
|
|
||||||
```dockerfile
|
|
||||||
RUN curl -1sLf \
|
|
||||||
'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.rpm.sh' | sh \
|
|
||||||
&& yum install -y infisical
|
|
||||||
```
|
|
||||||
</Tab>
|
|
||||||
<Tab title="Debian/Ubuntu">
|
|
||||||
```dockerfile
|
|
||||||
RUN apt-get update && apt-get install -y bash curl && curl -1sLf \
|
|
||||||
'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.deb.sh' | bash \
|
|
||||||
&& apt-get update && apt-get install -y infisical
|
|
||||||
```
|
|
||||||
</Tab>
|
|
||||||
</Tabs>
|
|
||||||
####
|
####
|
||||||
<Tip>
|
<Tip>
|
||||||
We recommend you to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://cloudsmith.io/~infisical/repos/infisical-cli/packages/)
|
We recommend you to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://cloudsmith.io/~infisical/repos/infisical-cli/packages/)
|
||||||
|
|||||||
Reference in New Issue
Block a user