Skip to content

Commit 0e6a6ca

Browse files
committed
Update fastapi dependencies
1 parent f8d76e3 commit 0e6a6ca

File tree

3 files changed

+106
-37
lines changed

3 files changed

+106
-37
lines changed

docker/jupyter/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FROM --platform=$TARGETPLATFORM python:3.11-slim as python-base
1010

1111
ARG TARGETPLATFORM
1212

13-
# python
13+
# python
1414
ENV PYTHONUNBUFFERED=1 \
1515
# prevents python creating .pyc files
1616
PYTHONDONTWRITEBYTECODE=1 \
@@ -21,7 +21,7 @@ ENV PYTHONUNBUFFERED=1 \
2121
\
2222
# poetry
2323
# https://python-poetry.org/docs/configuration/#using-environment-variables
24-
POETRY_VERSION=1.6.1 \
24+
POETRY_VERSION=1.8.4 \
2525
# make poetry install to this location
2626
POETRY_HOME="/opt/poetry" \
2727
# make poetry create the virtual environment in the project's root
@@ -47,10 +47,10 @@ ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
4747
FROM python-base as builder-base
4848
RUN apt-get update \
4949
&& apt-get install --no-install-recommends -y \
50-
# deps for installing poetry
51-
curl \
52-
# deps for building python deps
53-
build-essential
50+
# deps for installing poetry
51+
curl \
52+
# deps for building python deps
53+
build-essential
5454

5555
# install poetry - respects $POETRY_VERSION & $POETRY_HOME
5656
# The --mount will mount the buildx cache directory to where
@@ -76,8 +76,8 @@ COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
7676

7777
RUN apt-get update && apt-get install -y git
7878

79-
ADD configs/jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
80-
ADD configs/jupytext.toml /root/.config/jupytext.toml
79+
COPY configs/jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
80+
COPY configs/jupytext.toml /root/.config/jupytext.toml
8181

8282
WORKDIR /workshop
8383
EXPOSE 8888 4141

poetry.lock

Lines changed: 95 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ mlflow = ">=2.7"
3838

3939

4040
[tool.poetry.group.onnx.dependencies]
41-
fastapi = {version = "^0.104.1", extras = ["standard"]}
42-
uvicorn = "^0.24.0"
43-
onnxruntime = "^1.16.1"
44-
skl2onnx = "^1.15.0"
41+
fastapi = {version = "^0.115.3", extras = ["standard"]}
42+
onnxruntime = "^1.19.2"
43+
skl2onnx = "^1.17.0"
4544

4645
[tool.poetry.group.dev.dependencies]
4746
pre-commit = "^3.5.0"

0 commit comments

Comments
 (0)