-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
60 lines (54 loc) · 1.28 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
52
53
54
55
56
57
58
59
60
FROM ubuntu:bionic
# install dependencies
RUN apt update && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \
apt install -y --no-install-recommends \
apache2 \
ca-certificates \
certbot \
cron \
curl \
default-libmysqlclient-dev \
dh-autoreconf \
g++ \
git \
jq \
libapache2-mod-php \
libcurl4-gnutls-dev \
libssl-dev \
m4 \
mc \
make \
mariadb-client \
mariadb-server \
openssl \
php \
php-cli \
php-gd \
php-mysql \
php-xml \
pkg-config \
python \
python-mysqldb \
python3 \
python3-certbot-apache \
python3-mysqldb \
python3-venv \
rsyslog \
sudo \
supervisor \
unzip \
wget
# copy config files
COPY 50-server.cnf /etc/mysql/mariadb.conf.d/
COPY supervisord.conf /etc/supervisor/conf.d/
# install boinc
RUN git clone https://github.com/BOINC/boinc.git /usr/local/boinc
RUN cd /usr/local/boinc && ./_autosetup && ./configure --disable-client --disable-manager && make
# configure apache
RUN a2enmod cgi proxy proxy_http proxy_balancer lbmethod_byrequests
RUN echo "ServerName 127.0.0.1" >> /etc/apache2/apache2.conf
# create user
RUN adduser boincadm --disabled-password --gecos "" && \
usermod -a -G boincadm www-data
CMD [ "/usr/bin/supervisord" ]