-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (26 loc) · 1.11 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
FROM debian:latest as builder
RUN apt-get update && apt-get install -y \
openssh-client \
git \
&& rm -rf /var/lib/apt/lists/*
COPY github_key .
RUN eval $(ssh-agent) && \
ssh-add github_key && \
ssh-keyscan -H github.com >> /etc/ssh/ssh_known_hosts && \
git clone [email protected]:aidenlab/Polar.git /opt/Polar
FROM conda/miniconda3:latest
LABEL maintainer="[email protected]"
COPY --from=builder /opt/Polar /opt/Polar
RUN useradd -u 999 --user-group --system --create-home --no-log-init --shell /bin/bash -G sudo polar && \
mkdir -p /tmp/test && ln -s /opt/Polar/test/fastq /tmp/test/fastq && \
conda config --set always_yes yes --set changeps1 no && \
conda update -q conda && \
conda init bash && \
conda env create -n Polar_cond_env -f /opt/Polar/Polar_conda_env.yml && \
echo "source /usr/local/etc/profile.d/conda.sh\nPATH=/opt/Polar:\$PATH\nconda activate Polar_cond_env" >>/etc/profile.d/polar.sh && \
conda clean --all -f -y
ENV BASH_ENV="/etc/profile.d/polar.sh"
ENV PATH=/opt/Polar:$PATH
SHELL ["/bin/bash", "--login", "-c"]
WORKDIR /fastq
ENTRYPOINT ["align_serial.sh"]