-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.base
40 lines (32 loc) · 1.17 KB
/
Dockerfile.base
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
FROM continuumio/miniconda3:latest
ARG EPOCH
ARG DISTRO
ENV PATH /opt/conda/envs/qiime2-${DISTRO}-${EPOCH}/bin:$PATH
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV MPLBACKEND agg
ENV UNIFRAC_USE_GPU N
ENV HOME /home/qiime2
ENV XDG_CONFIG_HOME /home/qiime2
RUN mkdir /home/qiime2
WORKDIR /home/qiime2
RUN conda update -q -y conda
RUN conda install -q -y wget
RUN apt-get install -y procps
COPY ${EPOCH}/${DISTRO}/released/qiime2-${DISTRO}-ubuntu-latest-conda.yml released-env.yml
RUN conda env create -n qiime2-${DISTRO}-${EPOCH} --file released-env.yml \
&& conda clean -a -y \
&& chmod -R a+rwx /opt/conda \
&& rm released-env.yml
RUN /bin/bash -c "source activate qiime2-${DISTRO}-${EPOCH}"
ENV CONDA_PREFIX /home/qiime2/.conda/qiime2-${DISTRO}-${EPOCH}/
RUN qiime dev refresh-cache
RUN echo "source activate qiime2-${DISTRO}-${EPOCH}" >> $HOME/.bashrc
RUN echo "source tab-qiime" >> $HOME/.bashrc
# Important: let any UID modify these directories so that
# `docker run -u UID:GID` works
RUN chmod -R a+rwx /home/qiime2
# TODO: update this to point at the new homedir defined above. Keeping this
# for now because this will require an update to the user docs.
VOLUME ["/data"]
WORKDIR /data