| 1 |
FROM continuumio/miniconda3:latest |
| 2 |
LABEL org.opencontainers.image.authors="Eric Talevich <[email protected]>" |
| 3 |
|
| 4 |
ARG CNVKIT_VERSION=latest |
| 5 |
|
| 6 |
# Install directly into 'base' conda environment |
| 7 |
COPY conda-env.yml ./conda-env.yml |
| 8 |
RUN conda env update -v -n base -f conda-env.yml |
| 9 |
RUN conda clean --all --verbose |
| 10 |
RUN pip3 install cnvkit${CNVKIT_VERSION:+==$CNVKIT_VERSION} --no-cache |
| 11 |
# Let matplotlib build its font cache |
| 12 |
RUN cnvkit.py version |
| 13 |
|
| 14 |
COPY scripts/* /opt/conda/bin |
| 15 |
|
| 16 |
## USER CONFIGURATION, containers should not run as root |
| 17 |
RUN adduser --disabled-password --gecos '' --shell /bin/bash ubuntu |
| 18 |
USER ubuntu |
| 19 |
WORKDIR /home/ubuntu |
| 20 |
|
| 21 |
CMD ["bash"] |