-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (42 loc) · 1.78 KB
/
Dockerfile
File metadata and controls
57 lines (42 loc) · 1.78 KB
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
49
50
51
52
53
54
55
56
FROM condaforge/mambaforge:23.1.0-1
# Building image using bash shell
SHELL ["/bin/bash", "-c"]
ARG MAMBA_ENV="SEQuoiaComplete"
LABEL Bio-Rad Support <support@bio-rad.com>
RUN apt-get --allow-releaseinfo-change update \
&& apt-get clean -y
COPY $MAMBA_ENV.yaml /opt/biorad/env/
RUN mamba env create -f /opt/biorad/env/$MAMBA_ENV.yaml
RUN mamba clean -afy
RUN rm /root/.bashrc
RUN echo "source /etc/container.bashrc" >> /etc/bash.bashrc && \
echo "set +u" > /etc/container.bashrc && \
echo 'eval "$(conda shell.bash hook)"'> /etc/container.bashrc && \
echo 'source /opt/conda/etc/profile.d/mamba.sh' >> /etc/container.bashrc && \
echo "mamba activate $MAMBA_ENV" >> /etc/container.bashrc
# Activating environment when using non-login, non-interactive shell
ENV BASH_ENV /etc/container.bashrc
ENV ENV /etc/container.bashrc
# Adding Bio-Rad bin to path
ENV PATH /opt/biorad/bin/:$PATH
WORKDIR /opt/biorad
COPY . .
#set install for the pandoc and PDF needs as well as time data
ENV PATH=$PATH:/opt/biorad/src
ENV TZ=US
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# add fonts needs for the pdf report
RUN apt-get update
RUN apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic texlive-fonts-extra -y
WORKDIR /opt/conda/envs/$MAMBA_ENV/lib
#fix for issues / conflict between samtools and pandoc / R
#samtools needs libcrypto.so.1.0.0 and wont accept other versions as of May22
RUN cp libcrypto.so.1.1 libcrypto.so.1.0.0
WORKDIR /opt/biorad
# Pull in some ARGS for defining container name
ARG IMAGE_NAME
ARG SOURCE_BRANCH
ARG SOURCE_COMMIT
RUN printf "Container Name: ${IMAGE_NAME:-local}\n" > imageInfo.txt
RUN printf "Source Branch: ${SOURCE_BRANCH:-local}\n" >> imageInfo.txt
RUN printf "Source Commit: ${SOURCE_COMMIT:-local}\n" >> imageInfo.txt