-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
31 lines (24 loc) · 959 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
ARG BASE_OSG_SERIES=23
ARG BASE_OS=el9
ARG BASE_YUM_REPO=release
FROM opensciencegrid/software-base:$BASE_OSG_SERIES-$BASE_OS-$BASE_YUM_REPO
LABEL maintainer OSG Software <[email protected]>
RUN \
yum update -y && \
yum install -y condor && \
yum install -y python3-pip httpd mod_auth_openidc mod_ssl python3-mod_wsgi && \
yum remove -y python3-requests && \
yum clean all && rm -rf /var/cache/yum/*
COPY portal run_local.sh requirements.txt /opt/portal/
RUN pip3 install -U pip && pip3 install -r /opt/portal/requirements.txt
COPY register.py /usr/bin
COPY supervisor-apache.conf /etc/supervisord.d/40-apache.conf
COPY examples/apache.conf /etc/httpd/conf.d/
COPY examples/config.py wsgi.py portal /srv/
COPY examples/freshdesk2documentation.txt /etc/apache2/
COPY portal /srv/portal/
COPY documentation /srv/documentation/
ENV PYTHONUNBUFFERED=1
ENV CONFIG_DIR=/srv
#ENTRYPOINT ["/opt/portal/run_local.sh"]
#CMD ["--host=0.0.0.0"]