Skip to content

Commit

Permalink
Installed bitwarden secret manger cli in container
Browse files Browse the repository at this point in the history
  • Loading branch information
jontyms committed Mar 26, 2024
1 parent 43e94a6 commit e2ecf7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ RUN apt-get update && apt-get install -y build-essential
# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/bitwarden/sdk/releases/download/bws-v0.4.0/bws-x86_64-unknown-linux-gnu-0.4.0.zip

RUN unzip bws-x86_64-unknown-linux-gnu-0.4.0.zip

RUN mv bws /usr/local/bin

# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ version: '3'
services:
fastapi:
build: .
environment:
- BWS_ACCESS_TOKEN={$BWS_ACCESS_TOKEN}
ports:
- 8000:8000
volumes:
Expand Down

0 comments on commit e2ecf7f

Please sign in to comment.