-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (25 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
39 lines (25 loc) · 1.14 KB
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
FROM fedora:36
MAINTAINER Kathryn Janzen <kathryn.janzen@lightsource.ca>
RUN dnf clean all && rm -r /var/cache/dnf && dnf upgrade -y && dnf update -y
RUN dnf -y update && dnf clean all
RUN dnf -y update && dnf -y install httpd python-pip mod_wsgi postgresql-libs python-psycopg2 mod_xsendfile \
python-crypto python-memcached mod_ssl python-docutils unzip tar libgfortran hdf5 libquadmath python3-lz4 && dnf clean all
ADD CBFlib-0.9.7-2.fc36.x86_64.rpm /
RUN rpm -ivh CBFlib-0.9.7-2.fc36.x86_64.rpm
ADD pycbf-0.9.6.5-cp310-cp310-linux_x86_64.whl /
RUN pip install pycbf-0.9.6.5-cp310-cp310-linux_x86_64.whl
ADD requirements.txt /
RUN pip install --upgrade pip && pip install -r requirements.txt
EXPOSE 80
ADD . /dataserver
ADD ./local /dataserver/local
ADD deploy/run-server.sh /run-server.sh
ADD deploy/wait-for-it.sh /wait-for-it.sh
RUN chmod -v +x /run-server.sh /wait-for-it.sh
RUN /bin/rm /etc/httpd/conf.d/ssl.conf
RUN /bin/cp /dataserver/deploy/dataserver.conf /etc/httpd/conf.d/
RUN dnf -y install libglvnd-glx
RUN /usr/bin/python3 /dataserver/manage.py collectstatic --noinput
VOLUME ["/users"]
VOLUME ["/archive"]
CMD ["/run-server.sh"]