-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (33 loc) · 1.24 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
42
43
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
ENV NXF_VER="19.10.0"
EXPOSE 8080
EXPOSE 27017
# install package dependencies
RUN apt-get update -qq \
&& apt-get install -qq -y apt-transport-https apt-utils ca-certificates curl git openjdk-8-jre python3.7 python3-pip cron mongodb
# install kubectl
RUN apt-get update && apt-get install -y apt-transport-https \
&& curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
&& echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list \
&& apt-get update \
&& apt-get install -y kubectl
# install nextflow
RUN curl -s https://get.nextflow.io | bash \
&& mv nextflow /usr/local/bin \
&& nextflow info
# Upgrade python3
RUN rm /usr/bin/python3 && ln -s python3.7 /usr/bin/python3
# install nextflow-api
WORKDIR /opt/nextflow-api
#ADD https://api.github.com/repos/scidas/nextflow-api/git/refs/heads/master version.json
#RUN git clone -q https://github.com/scidas/nextflow-api.git
COPY . .
# move to nextflow-api directory
#WORKDIR /opt/nextflow-api
# Switch to rodeo tag
#RUN ls
#RUN git fetch && git checkout origin/relative4
# install python dependencies
RUN pip3 install -r requirements.txt
RUN python3 --version