Merge pull request #12 from diogotito/optimize-docker
Reorganize Dockerfile to speed up development with Docker
This commit is contained in:
commit
9c27ba943c
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
venv/
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
venv/
|
||||
exports/
|
11
Dockerfile
11
Dockerfile
@ -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 . .
|
Loading…
x
Reference in New Issue
Block a user