24 lines
640 B
Docker
24 lines
640 B
Docker
FROM python:3.11.0-slim-bullseye
|
|
|
|
RUN apt-get update && \
|
|
apt-get upgrade -y && \
|
|
apt-get install -y --no-install-recommends wget unzip && \
|
|
wget -O "bw.zip" "https://vault.bitwarden.com/download/?app=cli&platform=linux" && \
|
|
unzip bw.zip && \
|
|
chmod +x ./bw && \
|
|
mv ./bw /usr/local/bin/bw && \
|
|
apt-get purge -y --auto-remove wget unzip && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
rm -rf bw.zip
|
|
|
|
WORKDIR /bitwarden-to-keepass
|
|
COPY requirements.txt ./
|
|
|
|
RUN pip install --no-cache-dir --upgrade pip && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
CMD ["./entrypoint.sh"]
|