forked from rwk-unil/xSqueezeIt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (40 loc) · 1.38 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
45
46
47
FROM ubuntu:20.04
# This is a Dockerfile for running xSqueezeIt
MAINTAINER Rick Wertenbroek <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Install required software and clean as not to make the layer dirty
RUN apt-get update && apt-get -y upgrade && apt-get install -y \
apt-utils curl gnupg gcc g++ make autoconf && \
apt-get clean && apt-get purge && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update && apt-get -y upgrade && apt-get install -y \
git zlib1g-dev libbz2-dev liblzma-dev && \
apt-get clean && apt-get purge && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Clone Source Code Repository and build
RUN mkdir -p /usr/src/ && \
cd /usr/src/ && \
git clone https://github.com/rwk-unil/xSqueezeIt.git && \
cd /usr/src/xSqueezeIt && \
git submodule update --init --recursive htslib && \
cd htslib && \
autoheader && \
autoconf && \
automake --add-missing 2>/dev/null ; \
./configure && \
make && \
make install && \
ldconfig && \
cd .. && \
git clone https://github.com/facebook/zstd.git && \
cd zstd && \
make && \
cd .. && \
make && \
chmod +x xsqueezeit && \
cp xsqueezeit /usr/local/bin/ && \
cd /usr/src/ && \
rm -r xSqueezeIt
# Work in this temporary directory
WORKDIR /tmp/work
CMD echo "Run with the following command : docker run <tag> xsqueezeit [args]"