-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 904 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 904 Bytes
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
FROM cabanaonline/ubuntu:1.0
LABEL base.image="cabanaonline/alpine"
LABEL description="A MEGAHIT container."
LABEL maintainer="Alejandro Madrigal Leiva"
LABEL maintainer.email="me@alemadlei.tech"
ARG USER=cabana
ENV HOME /home/$USER
USER root
# Install python.
RUN set -xe; \
apt-get install -y python && \
apt-get clean && \
apt-get autoclean;
# Installs MEGAHIT.
RUN set -xe; \
\
cd $HOME/tools && \
wget https://github.com/voutcn/megahit/releases/download/v1.2.9/MEGAHIT-1.2.9-Linux-x86_64-static.tar.gz && \
tar zvxf MEGAHIT-1.2.9-Linux-x86_64-static.tar.gz && \
mv MEGAHIT-1.2.9-Linux-x86_64-static MEGAHIT && \
cd /usr/bin && \
ln -s $HOME/tools/MEGAHIT/bin/megahit megahit && \
rm MEGAHIT-1.2.9-Linux-x86_64-static.tar.gz;
# Reverts to standard user.
USER cabana
# Entrypoint to keep the container running.
ENTRYPOINT ["tail", "-f", "/dev/null"]