-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dockerfile for running PTM in a container (#38)
* Add if-main clause to cli * Move top-level confest.py to project root * Add dockerfile * Remove extra whitespace * Upgrade micromamba base image * Undo style change * Add __init__ file to tests root directory * updates to get tests working locally One still does not work but it will with a change in my next PR * Fix precommit error --------- Co-authored-by: Kristen Thyng <kthyng@gmail.com>
- Loading branch information
1 parent
afc38d0
commit c8dcd9d
Showing
6 changed files
with
23 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM mambaorg/micromamba:2.0.5-debian12 | ||
|
||
ENV PROJECT_NAME=particle-tracking-manager | ||
ENV PROJECT_ROOT=/opt/particle-tracking-manager | ||
|
||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/environment.yml | ||
RUN micromamba install -y -n base -f /tmp/environment.yml && \ | ||
micromamba clean --all --yes && \ | ||
rm /tmp/environment.yml | ||
|
||
COPY --chown=$MAMBA_USER:$MAMBA_USER particle_tracking_manager $PROJECT_ROOT/particle_tracking_manager | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER tests $PROJECT_ROOT/tests | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER pyproject.toml setup.cfg conftest.py README.md $PROJECT_ROOT/ | ||
|
||
WORKDIR $PROJECT_ROOT/ | ||
|
||
ENTRYPOINT ["micromamba", "run", "python", "-m", "particle_tracking_manager.cli"] |
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
Empty file.
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