Skip to content

Commit

Permalink
update the docker base image to 3.11; include all sub packges in the …
Browse files Browse the repository at this point in the history
…wheel;
  • Loading branch information
hannesrichter committed Sep 30, 2023
1 parent cc1bab6 commit d3dfeb5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM python:3.9
FROM python:3.11

# copy the prebuild wheels to the container
COPY ./dist /wheels

# update pip
RUN python -m pip install --upgrade pip
RUN python -m pip install --no-cache-dir --upgrade pip

# install the wheels
RUN pip install --find-links=/wheels koi_api
RUN pip install waitress
RUN pip install --no-cache-dir --find-links=/wheels koi_api
RUN pip install --no-cache-dir waitress

ENTRYPOINT [ "waitress-serve", "--port=8080", "--max-request-body-size=8589934592", "--call", "koi_api:create_app" ]
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["koi_api"]
packages = [
"koi_api",
"koi_api.common",
"koi_api.config",
"koi_api.orm",
"koi_api.persistence",
"koi_api.resources"
]

[project]
name = "koi-api"
Expand Down

0 comments on commit d3dfeb5

Please sign in to comment.