generated from nextstrain/ncov-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.Dockerfile
62 lines (48 loc) · 2 KB
/
.gitpod.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM condaforge/mambaforge:latest
LABEL image.author.name "AlbertRockG"
LABEL image.author.email "[email protected]"
USER root
ENV TZ=UTC
ENV DEBIAN_FRONTEND=noninteractive
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get -y update \
&& apt-get -y install \
ca-certificates \
tzdata \
git \
curl \
tmux \
htop \
xz-utils \
sudo \
gnupg \
lsb-release
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt update \
&& apt-get -y install docker-ce docker-ce-cli containerd.io
RUN curl -o /usr/bin/slirp4netns -fsSL https://github.com/rootless-containers/slirp4netns/releases/download/v1.1.12/slirp4netns-$(uname -m) \
&& chmod +x /usr/bin/slirp4netns
RUN curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-linux-$(uname -m) \
&& chmod +x /usr/local/bin/docker-compose && mkdir -p /usr/local/lib/docker/cli-plugins && \
ln -s /usr/local/bin/docker-compose /usr/local/lib/docker/cli-plugins/docker-compose
# https://github.com/wagoodman/dive
RUN curl -o /tmp/dive.deb -fsSL https://github.com/wagoodman/dive/releases/download/v0.10.0/dive_0.10.0_linux_amd64.deb \
&& apt install /tmp/dive.deb \
&& rm /tmp/dive.deb
RUN mamba create -n sarscovafrica seqkit \
samtools \
bcftools \
minimap2 \
tsv-utils \
-c conda-forge \
-c bioconda
RUN mamba create -n nextstrain nextstrain-cli \
-c conda-forge \
-c bioconda \
--strict-channel-priority \
--override-channels
ENV PATH /opt/conda/envs/nextstrain/bin:$PATH
RUN nextstrain setup conda \
&& nextstrain setup --set-default conda