summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 55a4ee08cbc2ecb412cc4501728869e4bc16c657 (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
ARG BASE_VERSION=${BASE_VERSION:latest-}
FROM astroconda/base:${BASE_VERSION}
LABEL maintainer="jhunk@stsci.edu" \
      vendor="Space Telescope Science Institute"

ARG PYTHON_VERSION=${PYTHON_VERSION:-3.7.1}

USER root

RUN yum install -y epel-release \
    && yum install -y \
        bzip2-devel \
        expat-devel \
        gdbm-devel \
        git \
        libffi-devel \
        libuuid-devel \
        ncurses-devel \
        openssl-devel \
        readline-devel \
        sqlite-devel \
        tcl-devel \
        tk-devel \
        xz-devel \
        zlib-devel \
    && yum clean all

WORKDIR "${TOOLCHAIN_BUILD}"

COPY scripts/ ${TOOLCHAIN_BUILD}/bin
COPY etc/ ${TOOLCHAIN_BUILD}/etc
RUN chown -R ${USER_ACCT}: "${TOOLCHAIN_BUILD}"

USER "${USER_ACCT}"
RUN bin/build.sh \
    && sudo rm -rf "${TOOLCHAIN_BUILD}"

WORKDIR "${USER_HOME}"

CMD ["/bin/bash", "-l"]