Skip to content

Commit 1efe04f

Browse files
authored
fix: include pystapi-client in docker image (#87)
## What I'm changing - Add **pystapi-client** to the docker image, hopefully unbreaking builds - Closes #86 ## Checklist - [x] Tests pass: `uv run pytest` - [x] Checks pass: `uv run pre-commit --all-files`
1 parent 5bfeef0 commit 1efe04f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@
1818
!/pystapi-validator/README.md
1919
!/pystapi-validator/src/*
2020
!/pystapi-validator/tests/*
21+
22+
!/pystapi-client/pyproject.toml
23+
!/pystapi-client/README.md
24+
!/pystapi-client/src/*
25+
!/pystapi-client/tests/*

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
ARG PYTHON_VERSION=3.12
2-
ARG BASE_IMAGE=ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-alpine
2+
ARG BASE_IMAGE=python:${PYTHON_VERSION}-slim-bookworm
33

44
FROM ${BASE_IMAGE} AS base
5+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
56

67
WORKDIR /app
78
COPY . /app
89

10+
RUN apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev && apt-get clean
911
RUN uv sync --frozen
1012

1113
CMD ["uv", "run", "fastapi", "dev", "/app/stapi-fastapi/tests/application.py", "--host", "0.0.0.0", "--port", "80"]

0 commit comments

Comments
 (0)