# start with a base centos7 image
FROM python:3.6.9

LABEL maintainer="hkim@lji.org"

RUN apt update \
    && apt -y install sqlite3 openjdk-11-jdk r-cran-hexbin tcsh \
    && apt-get install gawk

RUN pip install --upgrade pip==20.2.1

# SSH root certificate for gitlab.lji.org
RUN apt-get install ca-certificates -y \
    && wget https://cacerts.digicert.com/GeoTrustRSACA2018.crt.pem -O /usr/local/share/ca-certificates/GeoTrustRSACA2018.crt \
    && wget https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem -O /usr/local/share/ca-certificates/DigiCertGlobalRootCA.crt \
    && update-ca-certificates

RUN mkdir -p /src/axelf

WORKDIR /src/axelf

COPY . ./

RUN pip install -r requirements.txt

CMD ["tail", "-f", "/dev/null"]