-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
48 lines (42 loc) · 1.11 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
48
# Source Image
FROM ubuntu:latest
# Set noninterative mode
ENV DEBIAN_FRONTEND noninteractive
# apt update and install global requirements
RUN apt-get clean all && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
autoconf \
build-essential \
cmake \
git \
libbz2-dev \
libcurl4-openssl-dev \
libssl-dev \
zlib1g-dev \
liblzma-dev
# apt clean and remove cached source lists
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/samtools/htslib.git
RUN cd htslib && \
git submodule update --init --recursive && \
autoheader && \
autoconf && \
./configure --prefix=/usr/local/ && \
make && \
make install
# Install popscle
RUN git clone https://github.com/statgen/popscle.git
RUN cd popscle && \
mkdir build && \
cd build && \
cmake .. && \
make
RUN cp /popscle/bin/popscle /usr/local/bin
# Define default command
#CMD ["popscle"]
COPY ./entrypoint.sh /
RUN chmod 755 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]