-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
38 lines (27 loc) · 921 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
38
################## BASE IMAGE ######################
FROM perl:5.26
################## METADATA ######################
LABEL base_image="perl:5.26"
LABEL version="1"
LABEL software="MIP"
LABEL software.version="5.26"
LABEL extra.binaries="mip, perl, prove, cpanm, carton"
LABEL maintainer="Clinical-Genomics/MIP"
RUN apt-get update && apt-get install -y --no-install-recommends locales locales-all \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN cpanm install Carton
# Add MIP into image
ENV MIP_INSTALL_DIR=/workspace/bin
COPY . "$MIP_INSTALL_DIR"
WORKDIR "$MIP_INSTALL_DIR"
# Make executable and add to binary to PATH
RUN chmod a+x "$MIP_INSTALL_DIR/mip"
ENV PATH "$PATH:$MIP_INSTALL_DIR"
# Remove any outside local from previous carton installs
RUN rm -rf local
RUN carton install
ENV PERL5LIB="$MIP_INSTALL_DIR"/local/lib/perl5