Update Python version to 3.11 and manage dependencies with Poetry

This commit is contained in:
Roger Gonzalez 2024-12-04 19:45:26 -03:00
parent 4b3e89669a
commit b8ce56a75d
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
2 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,7 @@
FROM python:3.11-slim-bookworm
WORKDIR /bitwarden-to-keepass
RUN apt-get update && \
apt-get install -y --no-install-recommends wget unzip && \
wget -O "bw.zip" "https://vault.bitwarden.com/download/?app=cli&platform=linux" && \
@ -11,11 +13,13 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/* && \
rm -rf bw.zip
WORKDIR /bitwarden-to-keepass
COPY requirements.txt ./
RUN pip install --no-cache-dir poetry
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
RUN poetry config virtualenvs.create false
COPY pyproject.toml poetry.lock ./
RUN poetry install --only main --no-interaction --no-ansi
COPY . .

View File

@ -7,7 +7,7 @@ license = "GPL-3.0-or-later"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
pykeepass = ">=4.0,<5.0"