-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
394ae6b
commit c273bca
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |