-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
48 lines (40 loc) · 1.43 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
###### BASE IMAGE ######
FROM continuumio/miniconda3:4.12.0
####### METADATA #######
LABEL base_image="continuumio/miniconda3:4.12.0"
LABEL version="1.0"
LABEL software="HTSinfer"
LABEL software.version="v0.9.0"
LABEL about.summary="HTSinfer infers metadata from Illumina high-throughput sequencing (HTS) data"
LABEL about.home="https://github.com/zavolanlab/htsinfer"
LABEL about.documentation="https://htsinfer.readthedocs.io/"
LABEL about.license_file="https://spdx.org/licenses/Apache-2.0"
LABEL about.license="Apache License 2.0"
LABEL about.tags="Transcriptomics"
###### MAINTAINER ######
LABEL maintainer="Alexander Kanitz <[email protected]>"
LABEL maintainer.organisation="Biozentrum, University of Basel"
LABEL maintainer.location="Spitalstrasse 41, CH-4056 Basel, Switzerland"
LABEL maintainer.lab="Zavolan Lab"
##### INSTALLATION #####
# COPY THE YAML & INSTALL SOFTWARE WITH CONDA
WORKDIR /usr/src/app
COPY ./ ./
RUN conda env create --file environment.yml \
&& conda clean --all
# VARIABLES
ARG WORKDIR="/home/USER"
ARG USER="USER"
ARG GROUP="GROUP"
ENV PATH="${WORKDIR}:${PATH}"
# CREATE USER
RUN groupadd -r ${GROUP} && useradd --no-log-init -r -g ${GROUP} ${USER}
# SET ENVIRONMENT
WORKDIR ${WORKDIR}
RUN chown -R ${USER}:${GROUP} ${WORKDIR} && chmod 700 ${WORKDIR}
USER ${USER}
RUN echo "source activate htsinfer" > ~/.bashrc
ENV PATH /opt/conda/envs/htsinfer/bin:$PATH
# SET ENTRYPOINT
ENTRYPOINT ["htsinfer"]
CMD ["-h"]