-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(docker): update build to install pyproject.toml
- Loading branch information
1 parent
22216db
commit 125f17d
Showing
2 changed files
with
13 additions
and
13 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
FROM eligibility_server:latest | ||
|
||
# install python tooling | ||
COPY .devcontainer/requirements.txt .devcontainer/requirements.txt | ||
RUN pip install --no-cache-dir -r .devcontainer/requirements.txt | ||
# install devcontainer requirements | ||
RUN pip install -e .[dev,test] | ||
|
||
# install docs tooling | ||
# docs requirements are in a separate file for the GitHub Action | ||
COPY docs/requirements.txt docs/requirements.txt | ||
RUN pip install --no-cache-dir -r docs/requirements.txt | ||
|
||
# install test tooling | ||
COPY tests/requirements.txt tests/requirements.txt | ||
RUN pip install -r tests/requirements.txt | ||
# install pre-commit environments in throwaway Git repository | ||
# https://stackoverflow.com/a/68758943 | ||
COPY .pre-commit-config.yaml . | ||
RUN git init . && \ | ||
pre-commit install-hooks && \ | ||
rm -rf .git |
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