-
Notifications
You must be signed in to change notification settings - Fork 42
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
Showing
2 changed files
with
26 additions
and
1 deletion.
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,21 @@ | ||
FROM coreoasis/api_server:latest | ||
|
||
COPY --chown=server:server $ods_package ./ | ||
USER server | ||
|
||
# Install ods_tools from package file (Optional) 'docker build --build-arg ods_package=<whl>' | ||
ARG ods_package | ||
RUN if [ ! -z "$ods_package" ]; then \ | ||
pip uninstall ods-tools -y; \ | ||
pip install --user --no-warn-script-location $ods_package; \ | ||
fi | ||
|
||
# Install ODS-Tools from git branch (Optional) 'docker build --build-arg ods_tools_branch=develop' | ||
ARG ods_tools_branch | ||
RUN if [ ! -z "$ods_tools_branch" ] ; then \ | ||
apt update && apt install -y git; \ | ||
pip uninstall ods-tools -y; \ | ||
pip install --user --no-warn-script-location -v git+https://git@github.com/OasisLMF/ODS_Tools.git@${ods_tools_branch}#egg=ods-tools; \ | ||
fi | ||
|
||
|
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