-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (40 loc) · 1.29 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
FROM python:2.7.18-buster
#=====================#
# Setup Prerequisites #
#=====================#
RUN apt-get update && apt-get install -y \
apache2 \
git \
vim \
&& a2enmod cgi \
&& service apache2 restart \
&& rm -rf /var/lib/apt/lists/*
#===============================#
# Docker Image Configuration #
#===============================#
LABEL org.opencontainers.image.source='https://github.com/eipm/beacon' \
Description='Beacon' \
Vendor='Englander Institute for Precision Medicine' \
maintainer='[email protected]' \
base_image='python' \
base_image_version='2.7.18-buster'
#=====================#
# Install Beacon #
#=====================#
ENV BEACON_DIR /var/www/html/beacon
WORKDIR ${BEACON_DIR}
RUN git clone https://github.com/maximilianh/ucscBeacon.git \
&& cd ucscBeacon/ \
&& sed -i "s/'server.socket_port': port/'server.socket_port': port, 'server.socket_host': '0.0.0.0'/g" query
#=====================#
# Configure Beacon #
#=====================#
RUN echo "ServerName localhost" | tee /etc/apache2/conf-available/fqdn.conf \
&& a2enconf fqdn
COPY config/beacon.conf ${BEACON_DIR}/beacon.conf
COPY config/apache2.conf /etc/apache2/apache2.conf
COPY app ${BEACON_DIR}
#=====================#
# Beacon Startup #
#=====================#
CMD /usr/sbin/apache2ctl -D FOREGROUND