-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from jonassibbesen/static-build
Add static build option
- Loading branch information
Showing
2 changed files
with
113 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM mirror.gcr.io/library/ubuntu:20.04 | ||
|
||
MAINTAINER [email protected] | ||
MAINTAINER https://github.com/jonassibbesen | ||
|
||
WORKDIR /home | ||
|
||
|
@@ -13,13 +13,13 @@ RUN apt-get update && \ | |
### Install htslib | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends perl zlib1g-dev libbz2-dev liblzma-dev libcurl4-gnutls-dev libssl-dev && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends perl zlib1g-dev libbz2-dev liblzma-dev libssl-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget --no-check-certificate https://github.com/samtools/htslib/releases/download/1.16/htslib-1.16.tar.bz2 && \ | ||
tar -xvjf htslib-1.16.tar.bz2 && \ | ||
cd htslib-1.16 && \ | ||
./configure && \ | ||
./configure --disable-s3 --disable-gcs --disable-libcurl --disable-plugins && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -r * | ||
|
@@ -38,8 +38,8 @@ RUN cd rpvg && \ | |
RUN cd rpvg && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. && \ | ||
cmake -DBUILD_STATIC=1 .. && \ | ||
make && \ | ||
cd ../../ && \ | ||
mv rpvg/bin/rpvg /usr/bin/ && \ | ||
unlink rpvg/deps/libvgio/vg | ||
rm -r * |