diff --git a/Dockerfile b/Dockerfile index 44dcd20..6b0f492 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,11 @@ +FROM maven:3.6-openjdk-11 as builder + +COPY pom.xml /tmp/build/pom.xml +COPY src /tmp/build/src +COPY dependencies /tmp/build/dependencies + +RUN cd /tmp/build && mvn install + FROM alpine:latest # build from Alpine for much smaller final image @@ -43,6 +51,8 @@ COPY dependencies/lib/java /RNApeg/src/javalib COPY dependencies/lib/perl /RNApeg/src/perllib COPY src/main/docker/RNApeg.sh /RNApeg/src/bin +COPY --from=builder /tmp/build/target /RNApeg/src/javalib + # Change environment variables ENV PATH="/RNApeg/src/bin:${PATH}" ENV PERL5LIB="/RNApeg/src/perllib:${PERL5LIB}" diff --git a/pom.xml b/pom.xml new file mode 100755 index 0000000..e251f56 --- /dev/null +++ b/pom.xml @@ -0,0 +1,162 @@ + + 4.0.0 + + org.stjude.compbio.rnapeg + + rnapeg + 2.6.0 + + RNApeg: RNA junction extraction and mapping correction + + RNApeg extracts RNA junctions from BAM files, corrects and standardizes mapping ambiguities, and performs gene annotations. + + + + maven-assembly-plugin + + + + fully.qualified.MainClass + + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8.1 + + public + src/main/java + + + + + maven-resources-plugin + 2.5 + + + + copy-scripts + compile + + copy-resources + + + ${basedir}/target/scripts + + + src/main/scripts + + + + + + + copy-perllib + compile + + copy-resources + + + ${basedir}/target/perllib + + + src/main/perllib + + + + + + + + + + + + + + junit + junit + 4.10 + test + + + + + + com.github.broadinstitute + picard + 2.6.0 + + + + com.github.samtools + htsjdk + 1.129 + + + + + + + + 1.8 + 1.8 + +