Skip to content

Commit

Permalink
Updating Dockerfile to compile local copy of code, to enable debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dzerbino committed Nov 7, 2023
1 parent cc491ec commit 20a97b4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@ RUN apt update && apt install -y --no-install-recommends\
libbigwig-dev \
libhts-dev \
libgsl-dev
RUN git clone --depth 1 https://github.com/Ensembl/WiggleTools.git
WORKDIR WiggleTools
COPY Makefile Makefile
COPY src src
COPY python python
RUN make LIBS='-lwiggletools -lBigWig -lcurl -lz -lhts -lm -lgsl -lpthread'

FROM builder as test
COPY test test
RUN make test

FROM ubuntu:20.04
RUN apt update && apt install -y --no-install-recommends \
libbigwig0 \
libhts3 \
libgsl23
COPY --from=builder /WiggleTools/bin/wiggletools /usr/local/bin/
COPY --from=builder /bin/wiggletools /usr/local/bin/
WORKDIR /mnt
ENTRYPOINT ["wiggletools"]
CMD ["--help"]
Expand Down

0 comments on commit 20a97b4

Please sign in to comment.