diogotito 5f20c1f86b Reorganize Dockerfile to cache apt and pip steps
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
2022-09-26 21:44:30 +01:00

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 . .