-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
69 lines (60 loc) · 1.47 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
61
62
63
64
65
66
67
68
69
FROM alpine:3.4
MAINTAINER Ingmar Delsink https://github.com/idelsink
label version="2.0.0" \
description="Ampache docker image with Linux Alpine"
# Apache
ENV APACHE_WEB_ROOT=/var/www/localhost \
APACHE_PID_FILE=/run/apache2/httpd.pid \
APACHE_USER=apache \
APACHE_GROUP=www-data
# Ampache
ENV AMPACHE_VER=3.8.3 \
AMPACHE_WEB_DIR=${APACHE_WEB_ROOT}/ampache
# MySQL
ENV MYSQL_DATA_DIR=/var/lib/mysql \
MYSQL_SOCKET=/var/run/mysqld/mysqld.sock \
MYSQL_PID_FILE=/var/run/mysqld/mysqld.pid \
MYSQL_PORT=3306 \
MYSQL_USER=mysql
# update, upgrade and install:
RUN apk --no-cache update && \
apk add --no-cache \
apache2 \
apache2-utils \
apache2-webdav \
ffmpeg \
file \
git \
mysql \
mysql-client \
php5 \
php5-apache2 \
php5-curl \
php5-dom \
php5-gd \
php5-gettext \
php5-iconv \
php5-json \
php5-openssl \
php5-pdo \
php5-pdo_mysql \
php5-phar \
php5-sockets \
php5-xml \
php5-xmlreader \
php5-zlib \
pwgen \
supervisor \
wget
WORKDIR /
ADD root \
https://github.com/ampache/ampache/archive/${AMPACHE_VER}.zip \
# ampache-${AMPACHE_VER}.zip \
/
RUN /scripts/configure.sh
# 80: http
# 443: https (for future setup)
# 9001: supervisord web
# 32400: plex
EXPOSE 80 443 9001 32400
ENTRYPOINT [ "/scripts/entrypoint.sh" ]