-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (19 loc) · 884 Bytes
/
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
FROM ubuntu:20.04
LABEL authors="Nicholas Toda" \
description="Docker image containing all software requirements for the cyclerassembler pipeline"
RUN apt-get update
RUN apt-get install -y wget
RUN wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh \
&& bash Anaconda3-2019.03-Linux-x86_64.sh -b -p /usr/local/bin/anaconda \
&& rm Anaconda3-2019.03-Linux-x86_64.sh
ENV PATH=/usr/local/bin/anaconda/bin:$PATH
# Install conda environment
COPY environment.yml /
RUN conda env create --quiet -f /environment.yml && conda clean -a
# Add conda installation dir to PATH
ENV PATH /usr/local/bin/anaconda/envs/cycleassembler-1.0/bin:$PATH
# Dump the details of the installed packages to a file
RUN conda env export --name cyclerassembler-1.0 > cyclerassembler-1.0.yml
# Python requirements
ADD requirements.txt .
RUN pip install -r requirements.txt