This way, the RUN step that installs @bitwarden/cli gets cached and only needs to be run once per machine Likewise for the RUN step that installs pykeepass, which only needs to be run when the pykeepass version gets bumped
12 lines
244 B
Docker
12 lines
244 B
Docker
FROM python:3.10-slim-bullseye
|
|
|
|
RUN apt update && apt install -y npm && \
|
|
npm i -g @bitwarden/cli && \
|
|
apt purge -y npm
|
|
|
|
WORKDIR /bitwarden-to-keepass
|
|
|
|
COPY requirements.txt requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY . . |