forked from redhat-cop/containers-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
33 lines (27 loc) · 1.19 KB
/
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
25
26
27
28
29
30
31
32
33
FROM quay.io/openshift/origin-jenkins-agent-base:4.2
EXPOSE 8080
ENV PYTHON_VERSION=3.6 \
PATH=$HOME/.local/bin/:$PATH \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8 \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
PIP_NO_CACHE_DIR=off
ADD ubi.repo /etc/yum.repos.d/ubi.repo
RUN INSTALL_PKGS=" \
rh-python36 rh-python36-python-devel rh-python36-python-setuptools rh-python36-python-wheel rh-python36-python-pip nss_wrapper \
httpd24 httpd24-httpd-devel httpd24-mod_ssl httpd24-mod_auth_kerb httpd24-mod_ldap \
httpd24-mod_session atlas-devel gcc-gfortran libffi-devel libtool-ltdl enchant" && \
DISABLE_REPOS=--disablerepo='rhel-*' && \
yum $DISABLE_REPOS install -y yum-utils && \
yum -y --setopt=tsflags=nodocs $DISABLE_REPOS install $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum -y clean all --enablerepo='*' && \
source scl_source enable rh-python36 && \
scl enable rh-python36 bash && \
python3 -m pip install twine
ADD scl_enable /usr/share/container-scripts/
ENV BASH_ENV=/usr/share/container-scripts/scl_enable \
ENV=/usr/share/container-scripts/scl_enable \
PROMPT_COMMAND=". /usr/share/container-scripts/scl_enable"
USER 1001