-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(monodocs): Containerize documentation build environment
Signed-off-by: Chi-Sheng Liu <[email protected]>
- Loading branch information
1 parent
a2a63eb
commit 13c43c5
Showing
2 changed files
with
21 additions
and
0 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,13 @@ | ||
FROM condaforge/mambaforge:latest | ||
|
||
RUN conda install -c conda-forge conda-lock | ||
RUN --mount=type=bind,source=monodocs-environment.lock.yaml,target=monodocs-environment.lock.yaml \ | ||
conda-lock install -n monodocs-env monodocs-environment.lock.yaml | ||
|
||
ENV SETUPTOOLS_SCM_PRETEND_VERSION 2.0.0 | ||
COPY flyteidl flyteidl | ||
SHELL ["conda", "run", "-n", "monodocs-env", "/bin/bash", "-c"] | ||
RUN python -m pip install ./flyteidl | ||
|
||
WORKDIR /docs | ||
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "monodocs-env", "sphinx-build"] |
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