Skip to content

Commit

Permalink
Improve file size of Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
seppinho committed Nov 27, 2023
1 parent e14ef60 commit c72cbe3
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:22.04
MAINTAINER Lukas Forer <[email protected]> / Sebastian Schönherr <[email protected]>
LABEL Lukas Forer <[email protected]> / Sebastian Schönherr <[email protected]>

# Install compilers
RUN apt-get update && \
Expand Down Expand Up @@ -31,12 +31,12 @@ WORKDIR "/opt"
RUN wget https://faculty.washington.edu/browning/beagle/beagle.${BEAGLE_VERSION}.jar && \
mv beagle.${BEAGLE_VERSION}.jar /usr/bin/.


# Install bcftools
ENV BCFTOOLS_VERSION=1.13
WORKDIR "/opt"
RUN wget https://github.com/samtools/bcftools/releases/download/${BCFTOOLS_VERSION}/bcftools-${BCFTOOLS_VERSION}.tar.bz2 && \
tar xvfj bcftools-${BCFTOOLS_VERSION}.tar.bz2 && \
rm bcftools-${BCFTOOLS_VERSION}.tar.bz2 && \
cd bcftools-${BCFTOOLS_VERSION} && \
./configure && \
make && \
Expand All @@ -49,33 +49,31 @@ COPY files/bin/minimac4 minimac4/.
ENV PATH="/opt/minimac4:${PATH}"
RUN chmod +x /opt/minimac4/minimac4


# Install PGS-CALC
ENV PGS_CALC_VERSION="1.5.5"
RUN mkdir /opt/pgs-calc
WORKDIR "/opt/pgs-calc"
RUN wget https://github.com/lukfor/pgs-calc/releases/download/v${PGS_CALC_VERSION}/pgs-calc-${PGS_CALC_VERSION}.tar.gz && \
tar -xf pgs-calc-*.tar.gz
tar -xf pgs-calc-*.tar.gz && \
rm pgs-calc-*.tar.gz
ENV PATH="/opt/pgs-calc:${PATH}"



# Install imputationserver-utils
ENV IMPUTATIONSERVER_UTILS_VERSION=v1.2.1
RUN mkdir /opt/imputationserver-utils
WORKDIR "/opt/imputationserver-utils"
RUN wget https://github.com/genepi/imputationserver-utils/releases/download/${IMPUTATIONSERVER_UTILS_VERSION}/imputationserver-utils.tar.gz
#COPY files/bin/imputationserver-utils.tar.gz /opt/imputationserver-utils/.
RUN tar xvfz imputationserver-utils.tar.gz
RUN chmod +x /opt/imputationserver-utils/bin/tabix

RUN wget https://github.com/genepi/imputationserver-utils/releases/download/${IMPUTATIONSERVER_UTILS_VERSION}/imputationserver-utils.tar.gz && \
tar xvfz imputationserver-utils.tar.gz && \
rm imputationserver-utils.tar.gz && \
chmod +x /opt/imputationserver-utils/bin/tabix

# Install ccat
ENV CCAT_VERSION=1.1.0
RUN wget https://github.com/jingweno/ccat/releases/download/v${CCAT_VERSION}/linux-amd64-${CCAT_VERSION}.tar.gz
RUN tar xfz linux-amd64-${CCAT_VERSION}.tar.gz
RUN cp linux-amd64-${CCAT_VERSION}/ccat /usr/local/bin/
RUN chmod +x /usr/local/bin/ccat
RUN wget https://github.com/jingweno/ccat/releases/download/v${CCAT_VERSION}/linux-amd64-${CCAT_VERSION}.tar.gz && \
tar xfz linux-amd64-${CCAT_VERSION}.tar.gz && \
rm linux-amd64-${CCAT_VERSION}.tar.gz && \
cp linux-amd64-${CCAT_VERSION}/ccat /usr/local/bin/ && \
chmod +x /usr/local/bin/ccat

# Needed, because imputationserver-utils starts process (e.g. tabix)
ENV JAVA_TOOL_OPTIONS="-Djdk.lang.Process.launchMechanism=vfork"
Expand Down

0 comments on commit c72cbe3

Please sign in to comment.