-
Notifications
You must be signed in to change notification settings - Fork 366
/
Dockerfile
37 lines (28 loc) · 857 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
37
ARG BASE_DOCKER=eclipse-temurin:17-jdk
ARG release=false
FROM ${BASE_DOCKER} as build
LABEL stage=buildStage
# Install git for building
RUN apt-get update && \
apt-get --no-install-recommends install -y \
git
# Assumes Dockerfile lives in root of the git repo. Pull source files into container
COPY / /usr/picard/
WORKDIR /usr/picard
# download gradle then build
RUN ./gradlew -Drelease=${release} \
clean \
printVersion \
shadowJar
FROM ${BASE_DOCKER} as final
MAINTAINER Broad Institute DSDE <dsde-engineering@broadinstitute.org>
# Install R
RUN apt-get update && \
apt-get --no-install-recommends install -y \
r-base &&\
apt-get clean autoclean && \
apt-get autoremove -y
RUN mkdir /usr/picard/
COPY --from=build /usr/picard/build/libs/picard.jar /usr/picard/
RUN mkdir /usr/working
WORKDIR /usr/working