Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Oct 11, 2021
1 parent 394ae6b commit c273bca
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# use the ubuntu base image
FROM ubuntu:18.04

MAINTAINER Tobias Rausch [email protected]

# install packages
RUN apt-get update && apt-get install -y \
autoconf \
build-essential \
cmake \
g++ \
gfortran \
git \
libcurl4-gnutls-dev \
hdf5-tools \
libboost-date-time-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-iostreams-dev \
libbz2-dev \
libhdf5-dev \
libncurses-dev \
liblzma-dev \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# set environment
ENV BOOST_ROOT /usr

# install dicey
RUN cd /opt \
&& git clone --recursive https://github.com/gear-genomics/dicey.git \
&& cd /opt/dicey/ \
&& make STATIC=1 all \
&& make install

# Multi-stage build
FROM alpine:latest
RUN mkdir -p /opt/dicey/bin
WORKDIR /opt/dicey/bin
COPY --from=0 /opt/dicey/bin/dicey .

# Workdir
WORKDIR /root/

# Add dicey to PATH
ENV PATH="/opt/dicey/bin:${PATH}"

# by default /bin/sh is executed
CMD ["/bin/sh"]

0 comments on commit c273bca

Please sign in to comment.