Skip to content

Commit

Permalink
ensure up-to-date libdeflate is used
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Jun 2, 2023
1 parent 499de72 commit 58f5311
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apt-get -qq update && \
ADD https://github.com/ebiggers/libdeflate/archive/v1.18.tar.gz /tmp
RUN tar xzf /tmp/v1.18.tar.gz -C /tmp
WORKDIR /tmp/libdeflate-1.18
RUN cmake -B build && cmake --build build -j$(nproc) && cmake --install build
RUN cmake -B build && cmake --build build -j$(nproc) && cmake --install build && cp /usr/local/lib/libdeflate.so.0 /lib/x86_64-linux-gnu/libdeflate.so.0

ADD . /src
WORKDIR /src
Expand All @@ -20,6 +20,9 @@ RUN ctest -V
FROM ubuntu:20.04
RUN apt-get -qq update && \
apt-get -qq install -y --no-install-recommends --no-install-suggests \
tabix bcftools less
bcftools less
COPY --from=builder /src/spvcf /usr/local/bin/spvcf
COPY --from=builder /src/external/src/htslib/bgzip /usr/local/bin/bgzip
COPY --from=builder /src/external/src/htslib/tabix /usr/local/bin/tabix
COPY --from=builder /usr/local/lib/libdeflate.so.0 /lib/x86_64-linux-gnu/libdeflate.so.0
CMD ["spvcf"]

0 comments on commit 58f5311

Please sign in to comment.