-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 934 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 934 Bytes
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
FROM debian:jessie
ENV DEBIAN_FRONTEND noninteractive
# Install what we need
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
git \
libav-tools \
nginx \
php5-fpm \
php5-gd \
php5-mysql \
supervisor
# Install Sonerezh
RUN git clone --branch 1.2.0 --depth 1 https://github.com/Sonerezh/sonerezh.git /usr/share/nginx/sonerezh && \
chown -R www-data: /usr/share/nginx/sonerezh && \
chmod 775 -R /usr/share/nginx/sonerezh
# Prepare volume
RUN mkdir /music && \
ln -s /usr/share/nginx/sonerezh/app/webroot/img/thumbnails /thumbnails && \
chown www-data: /music
# Copy image configuration
RUN rm -f /etc/nginx/sites-enabled/default
COPY database.php /usr/share/nginx/sonerezh/app/Config/database.php
COPY default /etc/nginx/sites-enabled/default
COPY supervisord.conf etc/supervisor/conf.d/supervisord.conf
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/supervisord"]