-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
386ade9
commit c9c8315
Showing
6 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
FROM python:3.11-alpine | ||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | ||
LABEL org.bitcart.image=docker-compose-generator | ||
COPY . /app/generator | ||
WORKDIR /app | ||
COPY pyproject.toml uv.lock /app/ | ||
COPY generator /app/generator | ||
ENV UV_COMPILE_BYTECODE=1 | ||
ENV UV_NO_CACHE=1 | ||
ENV UV_NO_SYNC=1 | ||
RUN uv sync --frozen --no-dev | ||
ENV PATH="/app/.venv/bin:$PATH" | ||
ENTRYPOINT [ "python3", "-m", "generator"] |
This file contains 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 |
---|---|---|
@@ -1,2 +1,12 @@ | ||
[tool.uv.workspace] | ||
members = ["generator"] | ||
|
||
[tool.coverage.run] | ||
source = ["."] | ||
omit = [ | ||
"*__main__.py", | ||
"generator/tests/**", | ||
"venv/**", | ||
"env/**", | ||
"*__init__.py", | ||
] |