-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
35 lines (27 loc) · 891 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
28
29
30
31
32
33
34
35
FROM registry.access.redhat.com/ubi8/ubi:latest
ENV PYCURL_SSL_LIBRARY=openssl
ENV LC_CTYPE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
LABEL \
name="openshift4-mirror" \
description="Utility for mirroring OpenShift 4 content" \
maintainer="RedHat4Gov Team"
USER root
RUN \
yum install -y \
python3 \
python3-pip \
vim \
which \
&& yum clean all \
&& pip3 install --no-cache-dir --upgrade pip \
&& pip3 install --no-cache-dir pipenv==2018.11.26 \
&& echo 'export PS1="\n\[\e[34m\]\u\[\e[m\] at \[\e[32m\]\h\[\e[m\] in \[\e[33m\]\w\[\e[m\] \[\e[31m\]\n\\$\[\e[m\] "' >> /root/.bashrc \
&& mkdir -p /app/app
COPY app/* /app/app/
# Install Python dependencies
WORKDIR /app
COPY Pipfile Pipfile.lock entrypoint.sh openshift_mirror ./
RUN pipenv install --system --deploy
ENTRYPOINT ["/app/entrypoint.sh"]