Update Python version to 3.11 and manage dependencies with Poetry
This commit is contained in:
parent
4b3e89669a
commit
b8ce56a75d
12
Dockerfile
12
Dockerfile
@ -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 . .
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user