-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (39 loc) · 1.27 KB
/
Dockerfile
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
46
47
48
49
# Specify the parent image
FROM ubuntu:focal as app
#Creating variable that is only accessible in build
ARG SYLENS_VER="0.1.0"
# Metadata
LABEL base.image="Ubuntu Focal 20.04"
LABEL dockerfile.version="1"
LABEL software="Sylens"
LABEL software.version="${SYLENS_VER}"
LABEL description="FASTQ downsampler and ASCII converter"
LABEL website="https://github.com/evagunawan/SYLENS"
LABEL license="GNU GPL3"
LABEL license.url="https://github.com/evagunawan/SYLENS/blob/main/LICENSE"
LABEL maintainer="Eva Gunawan"
LABEL maintainer.email="eva.gunawan@slh.wisc.edu"
# Getting dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
python3 \
python3-pip \
gzip && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN pip3 install argparse \
biopython && \
mkdir data
# Grabbing Sylens from github
RUN wget https://github.com/evagunawan/SYLENS/archive/main.tar.gz && \
tar -xvf main.tar.gz && \
rm main.tar.gz
# Add SYLENS directory to PATH
ENV PATH="/SYLENS-main:$PATH"
# Setting the work directory. Staphb uses /data
WORKDIR /data
# Running the image, default command if nothing is entered
CMD ["sylens", "--help"]
#Testing the image
FROM app as test
WORKDIR /
RUN sylens SYLENS-main/docker_test/docker_testing.fastq -s 1