-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
30 lines (23 loc) · 878 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
FROM debian
# see https://wiki.volkszaehler.org/software/middleware/installation#manuelle_installation
RUN apt-get update && apt-get install -y \
git-core php-cli php-mysql php-apcu mariadb-client php-xml php-mbstring ca-certificates wget zip curl \
&& rm -rf /var/lib/apt/lists/*
RUN git clone git://github.com/volkszaehler/volkszaehler.org.git ~/volkszaehler.org && \
mkdir /var/www && \
ln -sf ~/volkszaehler.org /var/www/volkszaehler.org && \
chown -R www-data /var/www/volkszaehler.org
RUN cd /tmp && \
curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer && \
chmod +x /usr/local/bin/composer
RUN cd /var/www/volkszaehler.org/ && composer install
# ENV db_host
# ENV db_port
# ENV db_user
# ENV db_pass
# ENV db_admin_user
# ENV db_admin_pass
COPY vz/startit.sh /startit.sh
RUN chmod a+x /startit.sh
CMD ["/startit.sh"]