Dockerfile-base 885 Bytes
Newer Older
1
# -*- coding: utf-8 -*-
2
3
4
5
6
7
#
# This file is part of CERN Search.
# Copyright (C) 2018-2019 CERN.
#
# CERN Search is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
8
9
10
11
12

# Use CentOS7:
FROM inveniosoftware/centos7-python:3.6

# Install pre-requisites
13
14
15
RUN yum erase -y python36u python36u-devel python36u-pip && \
    yum install -y rh-python36 python36-devel python36-pip && \
    yum update -y && \
16
17
18
19
20
21
22
23
24
25
26
27
28
    yum install -y \
        gcc \
        openssl \
        openldap-devel \
        https://linuxsoft.cern.ch/cern/centos/7/cern/x86_64/Packages/CERN-CA-certs-20180516-1.el7.cern.noarch.rpm

# CERN Search installation
WORKDIR /${WORKING_DIR}/src
ADD ./Pipfile /${WORKING_DIR}/src/Pipfile
ADD ./Pipfile.lock /${WORKING_DIR}/src/Pipfile.lock

# Install dependencies globally
RUN pipenv install --system --deploy