forked from typia/racktables-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (35 loc) · 1006 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
32
33
34
35
36
37
38
# vim: set ft=dockerfile:
FROM alpine:3.6
# Author with no obligation to maintain
MAINTAINER Paul Tötterman <paul.totterman@iki.fi>
ENV DBHOST="mariadb" \
DBNAME="racktables" \
DBUSER="racktables" \
DBPASS=""
COPY entrypoint.sh /entrypoint.sh
RUN apk --no-cache add \
ca-certificates \
curl \
php5-bcmath \
php5-curl \
php5-fpm \
php5-gd \
php5-json \
php5-ldap \
php5-pcntl \
php5-pdo_mysql \
php5-snmp \
&& chmod +x /entrypoint.sh \
&& curl -sSLo /racktables.tar.gz 'https://github.com/RackTables/racktables/archive/RackTables-0.21.0.tar.gz' \
&& mkdir /opt \
&& tar -xz -C /opt -f /racktables.tar.gz \
&& mv /opt/racktables-RackTables-0.21.0 /opt/racktables \
&& rm -f /racktables.tar.gz \
&& sed -i \
-e 's|^listen =.*$|listen = 9000|' \
-e 's|^;daemonize =.*$|daemonize = no|' \
/etc/php5/php-fpm.conf
VOLUME /opt/racktables/wwwroot
EXPOSE 9000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/php-fpm5"]