forked from redhat-cop/containers-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (22 loc) · 814 Bytes
/
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
FROM quay.io/openshift/origin-jenkins-agent-base:4.6
EXPOSE 8080
ENV PYTHON_VERSION=3.8 \
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 ubi8.repo /tmp/ubi8.repo
RUN INSTALL_PKGS=" \
python38 python38-devel nss_wrapper httpd httpd-devel mod_ssl mod_ldap \
mod_session atlas-devel gcc-gfortran libffi-devel libtool-ltdl enchant" && \
rm -f /etc/yum.repos.d/*.repo && \
mv /tmp/ubi8.repo /etc/yum.repos.d && \
dnf -y --setopt=tsflags=nodocs install $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
dnf -y clean all && \
alternatives --set python3 /usr/bin/python3.8 && \
python3 -m pip install --upgrade pip && \
python3 -m pip install twine
USER 1001