Merge pull request #12 from diogotito/optimize-docker

Reorganize Dockerfile to speed up development with Docker
This commit is contained in:
David Němec 2022-09-28 21:41:22 +02:00 committed by GitHub
commit 9c27ba943c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
venv/

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
venv/
exports/

View File

@ -1,9 +1,12 @@
FROM python:3.10-slim-bullseye
WORKDIR /bitwarden-to-keepass
COPY . .
RUN apt update && apt install -y npm && \
pip install -r requirements.txt && \
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 . .