forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (34 loc) · 1.66 KB
/
Copy pathDockerfile
File metadata and controls
45 lines (34 loc) · 1.66 KB
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
ARG LRGE_VER="0.2.0"
FROM ubuntu:jammy AS app
ARG LRGE_VER
# 'LABEL' instructions tag the image with metadata that might be important to the user
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="lrge"
LABEL software.version="${LRGE_VER}"
LABEL description="Long Read-based Genome size Estimation from overlaps"
LABEL website="https://github.com/mbhall88/lrge"
LABEL license="https://github.com/mbhall88/lrge/blob/main/LICENSE"
LABEL maintainer="Erin Young"
LABEL maintainer.email="eriny@utah.gov"
# 'RUN' executes code during the build
# Install dependencies via apt-get or yum if using a centos or fedora base
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN wget -q https://github.com/mbhall88/lrge/releases/download/lrge-${LRGE_VER}/lrge-${LRGE_VER}-x86_64-unknown-linux-gnu.tar.gz && \
tar -xvf lrge-${LRGE_VER}-x86_64-unknown-linux-gnu.tar.gz && \
mv lrge-${LRGE_VER}-x86_64-unknown-linux-gnu/lrge /usr/local/bin && \
rm -rf lrge-${LRGE_VER}-x86_64-unknown-linux-gnu.tar.gz lrge-0.1.3-x86_64-unknown-linux-gnu
# 'CMD' instructions set a default command when the container is run. This is typically 'tool --help.'
CMD [ "lrge", "--help" ]
WORKDIR /data
FROM app AS test
# set working directory so that all test inputs & outputs are kept in /test
WORKDIR /test
RUN lrge --help && lrge --version
# stolen from https://github.com/mbhall88/lrge
RUN wget https://github.com/StaPH-B/docker-builds/raw/refs/heads/master/tests/SARS-CoV-2/SRR13957123_1.fastq.gz && \
lrge -t 2 SRR13957123_1.fastq.gz -o results.txt && \
head results.txt