-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: PAN-1832 include config on wheel (#10)
* fix: PAN-1832 include config on wheel
- Loading branch information
Showing
14 changed files
with
126 additions
and
238 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
**/__pycache__/ | ||
*.egg-info/ | ||
*.key* | ||
*.keystore* | ||
*.swp | ||
.coverage | ||
.DS_store | ||
.venv/ | ||
.vscode/ | ||
build/ | ||
dist/ | ||
find.sh | ||
local/ | ||
.pytest_cache | ||
.mypy_cache | ||
Dockerfile | ||
*. |
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 |
---|---|---|
|
@@ -11,3 +11,5 @@ build/ | |
dist/ | ||
find.sh | ||
local/ | ||
.pytest_cache | ||
.mypy_cache |
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,27 +1,26 @@ | ||
FROM python:3.12-alpine | ||
|
||
ARG environment=testnet | ||
ARG version=1.1.0 | ||
|
||
ENV PANTOS_CLIENT_VERSION=${version} | ||
FROM python:3.12-alpine AS build | ||
|
||
RUN apk update && apk add gcc libc-dev libffi-dev \ | ||
&& apk cache clean | ||
|
||
RUN python3 -m pip install poetry | ||
|
||
WORKDIR /pantos-cli | ||
|
||
COPY pyproject.toml poetry.lock ./ | ||
COPY . . | ||
|
||
RUN python3 -m pip install poetry | ||
RUN poetry build | ||
|
||
FROM python:3.12-alpine AS production | ||
|
||
WORKDIR /pantos-cli | ||
|
||
COPY --from=build /pantos-cli/dist/*.whl . | ||
|
||
RUN poetry install --only main --no-interaction --no-cache --no-root | ||
RUN python3 -m pip install *.whl | ||
|
||
RUN mkdir -p ./pantos/cli | ||
RUN pip cache purge && rm -rf ~/.cache/pip | ||
|
||
COPY pantos/cli ./pantos/cli | ||
COPY client-cli.yml . | ||
COPY client-library.yml . | ||
COPY client-cli.env . | ||
COPY client-library.env . | ||
RUN rm *.whl | ||
|
||
ENTRYPOINT ["poetry", "run", "python3", "-m", "pantos.cli"] | ||
ENTRYPOINT ["pantos-cli"] |
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 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.