-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
44 lines (36 loc) · 1.01 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
44
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
ENV NXF_VER="21.04.3"
EXPOSE 8080
EXPOSE 27017
# install package dependencies
RUN apt-get update -qq \
&& apt-get install -qq -y \
apt-transport-https \
apt-utils \
ca-certificates \
cron \
curl \
git \
mongodb \
openjdk-8-jre \
python3.7 \
python3-pip \
zip
# change python to refer to python 3.7
RUN rm /usr/bin/python3 && ln -s python3.7 /usr/bin/python3
# install kubectl
RUN 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 -qq \
&& apt-get install -qq -y kubectl
# install nextflow
RUN curl -s https://get.nextflow.io | bash \
&& mv nextflow /usr/local/bin \
&& nextflow info
# install nextflow-api from build context
WORKDIR /opt/nextflow-api
COPY . .
# install python dependencies
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install -r requirements.txt