forked from threeML/astromodels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (14 loc) · 840 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
FROM ubuntu:16.04
MAINTAINER Giacomo Vianello <[email protected]>
# Override the default shell (sh) with bash
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Update repositories and install needed packages
# I use one long line so that I can remove all .deb files at the end
# before Docker writes out this layer
RUN apt-get update && apt-get install -y python2.7 python2.7-dev python-dev wget python-pip git python-tk libreadline6-dev libncurses5-dev xorg-dev gcc g++ gfortran perl-modules && apt-get clean
RUN mkdir -p /heasoft/src
COPY heasoft-6.19src.tar.gz /heasoft/src
RUN cd /heasoft && mkdir build && cd src && tar zxvf heasoft-6.19src.tar.gz && cd heasoft-6.19/BUILD_DIR/ && ./configure --prefix=/heasoft/build && make && make install && rm -rf /heasoft/src
RUN pip install virtualenv
RUN apt-get install sudo
WORKDIR /