summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 7a4da8a3ec90b1e2437267decaa294c424fa76b1 (plain) (blame)
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
FROM centos:6
LABEL maintainer="jhunk@stsci.edu" \
      vendor="Space Telescope Science Institute"

RUN yum install -y epel-release \
    && yum clean all

RUN yum install -y \
	gcc \
	gcc-c++ \
	gcc-gfortran \
	glibc \
	perl \
        pkgconfig \
	expat-devel \
	bzip2-devel \
	gdbm-devel \
	libffi-devel \
	ncurses-devel \
	openssl-devel \
	readline-devel \
	sqlite-devel \
	tcl-devel \
	tk-devel \
	xz-devel \
	zlib-devel \
    && yum clean all

COPY build_*.sh /usr/local/bin/
ENV PATH="/opt/openssl/bin:${PATH}"
ENV MANPATH="/opt/openssl/share/man:${MANPATH}"
ENV PKG_CONFIG_PATH="/opt/openssl/lib/pkgconfig:/usr/lib/pkgconfig:${PKG_CONFIG_PATH}"

WORKDIR /builder
RUN build_openssl.sh
RUN build_mpdec.sh
RUN build_python.sh 3.5.5
RUN build_python.sh 3.6.6
RUN build_python.sh 3.7.0
RUN rm -rf /builder

WORKDIR /root