File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:22.04
2+
3+ LABEL maintainer=
"[email protected] " 4+ LABEL license="MPL-2.0"
5+
6+ RUN apt-get update && \
7+ apt-get install -y --no-install-recommends \
8+ wget \
9+ build-essential \
10+ zlib1g-dev \
11+ libbz2-dev \
12+ liblzma-dev \
13+ ca-certificates && \
14+ rm -rf /var/lib/apt/lists/*
15+
16+ # Install htslib (includes tabix + bgzip)
17+ ENV HTSLIB_VERSION=1.20
18+ RUN wget https://github.com/samtools/htslib/releases/download/${HTSLIB_VERSION}/htslib-${HTSLIB_VERSION}.tar.bz2 && \
19+ tar -xjf htslib-${HTSLIB_VERSION}.tar.bz2 && \
20+ cd htslib-${HTSLIB_VERSION} && \
21+ ./configure && make && make install && \
22+ cd .. && rm -rf htslib-${HTSLIB_VERSION}*
Original file line number Diff line number Diff line change 1+ # as Modkit is rust-based
2+ FROM rust:1.70-slim AS builder
3+
4+ WORKDIR /workspace
5+
6+ RUN apt-get update && \
7+ apt-get install -y --no-install-recommends git build-essential pkg-config libssl-dev && \
8+ git clone --branch v0.5.0 https://github.com/nanoporetech/modkit.git . && \
9+ cargo build --release
10+
11+ # now smaller image in which we can run modkit
12+ FROM debian:bookworm-slim
13+
14+ LABEL maintainer=
"[email protected] " 15+ LABEL license="MPL-2.0"
16+
17+ COPY --from=builder /workspace/target/release/modkit /usr/local/bin/modkit
18+
You can’t perform that action at this time.
0 commit comments