-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
56 lines (47 loc) · 1.1 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# use the ubuntu base image
FROM ubuntu:22.04
MAINTAINER Tobias Rausch [email protected]
# install required 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 \
libdeflate-dev \
libhdf5-dev \
libncurses-dev \
liblzma-dev \
pkg-config \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# set environment
ENV BOOST_ROOT /usr
# install sansa
RUN cd /opt \
&& git clone --recursive https://github.com/dellytools/sansa.git \
&& cd /opt/sansa/ \
&& make STATIC=1 all \
&& make install
# Multi-stage build
FROM alpine:latest
RUN apk add --no-cache bash
RUN mkdir -p /opt/sansa/bin
WORKDIR /opt/sansa/bin
COPY --from=0 /opt/sansa/bin/sansa .
# Workdir
WORKDIR /home
# Add sansa to PATH
ENV PATH="/opt/sansa/bin:${PATH}"
# by default /bin/bash is executed
CMD ["/bin/bash"]