-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
36 lines (29 loc) · 944 Bytes
/
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
FROM eclipse-temurin:17
# See: https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y wget ncbi-blast+ build-essential g++ cmake git-all \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
#Primer3
RUN cd / \
&& wget https://github.com/primer3-org/primer3/archive/v2.5.0.tar.gz \
&& tar -xf v2.5.0.tar.gz \
&& rm v2.5.0.tar.gz \
&& cd /primer3-2.5.0/src \
&& make
ENV PATH="/primer3-2.5.0/src:${PATH}"
ADD . /discvr-build
RUN cd /discvr-build \
&& ./gradlew assemble \
&& ./gradlew shadowJar \
&& ./gradlew copyShadowJar \
&& mv build/jars/DISCVRSeq-*.jar /DISCVRSeq.jar \
&& cd / \
&& rm -Rf /discvr-build \
# Sanity check:
&& java -version \
&& which blastn \
&& which primer3_core \
&& stat /DISCVRSeq.jar
ENTRYPOINT ["java", "-jar", "/DISCVRSeq.jar"]