-
-
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.
Merge pull request #218 from bahlo/revive
Revive
- Loading branch information
Showing
15 changed files
with
597 additions
and
866 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 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ build | |
dist | ||
*.egg-info | ||
__pycache__ | ||
.pdm-python |
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,7 +1,14 @@ | ||
FROM python:3.7 | ||
ARG PYTHON_BASE=3.12-slim | ||
FROM python:$PYTHON_BASE AS builder | ||
RUN pip install -U pdm | ||
ENV PDM_CHECK_UPDATE=false | ||
COPY pyproject.toml pdm.lock README.md /project/ | ||
COPY src/ /project/src | ||
WORKDIR /project | ||
RUN pdm install --check --prod --no-editable | ||
|
||
COPY . /app | ||
WORKDIR /app | ||
RUN pip install . | ||
|
||
CMD ["ing-ynab"] | ||
FROM python:$PYTHON_BASE | ||
COPY --from=builder /project/.venv/ /project/.venv | ||
ENV PATH="/project/.venv/bin:$PATH" | ||
COPY src /project/src | ||
CMD ["python", "src/__main__.py"] |
Oops, something went wrong.