-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add fastapi docker #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
5e2e340
first version Dockerfile
toro-berlin f3c072a
reduce file list copied over to the image
toro-berlin 6cb8620
first test of the github action
toro-berlin 230c974
move the image build to ci yaml
toro-berlin 3a77132
forward python version
toro-berlin 8cfea28
make linter happy
toro-berlin 7ad620d
remove validator
toro-berlin 9e6943b
test push
toro-berlin ba9a42d
fix path
toro-berlin d4a8e23
make the test work
toro-berlin 278c768
move to release wokflow
toro-berlin d08705e
make linter happy
toro-berlin e3f1017
Rename Docker Job
toro-berlin 2cfde62
Remove newlines
toro-berlin 257e9ec
Merge branch 'main' into add-fastapi-docker
toro-berlin 4d70a25
only run for fastapi
toro-berlin a5b878d
Update Dockerfile
toro-berlin d5f1598
include docker build into PR pipeline
toro-berlin 34e4035
harmonize
toro-berlin 31a0591
explicitly do not push
toro-berlin 0e14bf2
job name: package-name -> package_name
toro-berlin d4353dc
re name back: pypi-reelase -> release
toro-berlin dc705ec
add pystapi-validator again for now as it is a dependency
toro-berlin dc78d07
change way of passing the python version
toro-berlin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| * | ||
|
|
||
| !/pyproject.toml | ||
| !/README.md | ||
| !/uv.lock | ||
|
|
||
| !/stapi-fastapi/pyproject.toml | ||
| !/stapi-fastapi/README.md | ||
| !/stapi-fastapi/src/* | ||
| !/stapi-fastapi/tests/* | ||
|
|
||
| !/stapi-pydantic/pyproject.toml | ||
| !/stapi-pydantic/README.md | ||
| !/stapi-pydantic/src/* | ||
| !/stapi-pydantic/tests/* | ||
|
|
||
| !/pystapi-validator/pyproject.toml | ||
| !/pystapi-validator/README.md | ||
| !/pystapi-validator/src/* | ||
| !/pystapi-validator/tests/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
toro-berlin marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ARG PYTHON_VERSION=3.12 | ||
| ARG BASE_IMAGE=ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-alpine | ||
|
|
||
| FROM ${BASE_IMAGE} AS base | ||
|
|
||
| WORKDIR /app | ||
| COPY . /app | ||
|
|
||
| RUN uv sync --frozen | ||
|
|
||
| CMD ["uv", "run", "fastapi", "dev", "/app/stapi-fastapi/tests/application.py", "--host", "0.0.0.0", "--port", "80"] | ||
toro-berlin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.