-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
51 lines (39 loc) · 1.27 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM almalinux:8
LABEL maintainer="CSC Rahti Team <rahti-team@postit.csc.fi>"
ARG SYSTEM_NAME
ARG OSO_WEB_UI_URL
ARG OSO_REGISTRY_URL
ARG LDAP_LOGIN_SUPPORT
ARG GITLAB_LOGIN_SUPPORT
ARG SUI_INTEGRATION_DONE
ARG OPENSHIFT_VERSION
ARG BILLING_ENABLED
ARG SHOW_AGREEMENTS
ARG DOCS_PREFIX
ENV SYSTEM_NAME=${SYSTEM_NAME}
ENV OSO_WEB_UI_URL=${OSO_WEB_UI_URL}
ENV OSO_REGISTRY_URL=${OSO_REGISTRY_URL}
ENV LDAP_LOGIN_SUPPORT=${LDAP_LOGIN_SUPPORT}
ENV GITLAB_LOGIN_SUPPORT=${GITLAB_LOGIN_SUPPORT}
ENV SUI_INTEGRATION_DONE=${SUI_INTEGRATION_DONE}
ENV OPENSHIFT_VERSION=${OPENSHIFT_VERSION}
ENV BILLING_ENABLED=${BILLING_ENABLED}
ENV SHOW_AGREEMENTS=${SHOW_AGREEMENTS}
ENV DOCS_PREFIX=${DOCS_PREFIX}
ENV LANG=en_US.UTF-8
# These need to be owned and writable by the root group in OpenShift
ENV ROOT_GROUP_DIRS='/var/run /var/log/nginx /var/lib/nginx'
RUN yum -y install epel-release &&\
yum -y install nginx python39-pip python39 &&\
yum clean all &&\
chmod g+rwx /var/run /var/log/nginx
RUN chgrp -R root ${ROOT_GROUP_DIRS} &&\
chmod -R g+rwx ${ROOT_GROUP_DIRS}
COPY . /tmp
WORKDIR /tmp
RUN pip3 install --no-cache-dir -r requirements.txt && \
sh -c /tmp/make_config.sh && \
mkdocs build -d /usr/share/nginx/html
COPY nginx.conf /etc/nginx
EXPOSE 8000
CMD [ "/usr/sbin/nginx" ]