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 #21 from Clinical-Genomics/dockerfile
Created a runnable Dockerfile
- Loading branch information
Showing
3 changed files
with
35 additions
and
7 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,19 @@ | ||
FROM python:3.8-slim | ||
|
||
LABEL base_image="python:3.8-slim" | ||
LABEL about.home="https://github.com/Clinical-Genomics/NIPTool" | ||
LABEL about.tags="NIPT,statistics,Non Invasive Prenatal Test,python" | ||
|
||
WORKDIR /home/worker/app | ||
COPY . /home/worker/app | ||
|
||
# Install app requirements | ||
RUN pip install -r requirements.txt | ||
|
||
# Install app | ||
RUN pip install -e . | ||
|
||
# Create and switch to a new non-root user | ||
RUN useradd worker | ||
RUN chown worker:worker -R /home/worker | ||
USER worker |
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