-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (34 loc) · 1.51 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
FROM ubuntu:jammy
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
ARG VERSION=1.0.6
ARG BUILD=0
# Install dependencies
RUN apt-get update --fix-missing && \
apt-get install -y wget zip bzip2 curl git file vim iputils-ping && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install miniconda3
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean --all -y && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate && cd" >> ~/.bashrc
# Run and configurate conda environment
RUN /bin/bash -c "source activate && \
conda config --add channels defaults && \
conda config --add channels conda-forge && \
conda config --add channels bioconda && \
conda install -n base -y conda-libmamba-solver && \
conda install -n base -y --solver=libmamba ufcg libboost'>=1.8.5'"
# Download minimum payloads
RUN wget --quiet https://ufcg.steineggerlab.workers.dev/payload/config.tar.gz && \
wget --quiet https://ufcg.steineggerlab.workers.dev/payload/core.tar.gz && \
wget --quiet https://ufcg.steineggerlab.workers.dev/payload/sample.tar.gz && \
tar -xzf config.tar.gz -C /opt/conda/share/ufcg-${VERSION}-${BUILD}/ && \
tar -xzf core.tar.gz -C /opt/conda/share/ufcg-${VERSION}-${BUILD}/ && \
tar -xzf sample.tar.gz -C ~ && \
rm *.tar.gz
CMD [ "/bin/bash" ]