-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (28 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
FROM jgoerzen/debian-base-apache-php:bullseye
LABEL org.opencontainers.image.authors="Jasmine Möller <mail@jasmine-moeller.de>"
RUN mv /usr/sbin/policy-rc.d.disabled /usr/sbin/policy-rc.d
RUN apt-get update && \
apt-get -y --no-install-recommends install php-mysql php-xml \
php-json php-curl php-intl php-zip \
ffmpeg php-gd git timidity flac vorbis-tools && \
apt-get -y -u dist-upgrade && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY setup/ /tmp/setup/
RUN /tmp/setup/setup.sh
COPY 99-ampache.ini /etc/php/7.4/apache2/conf.d/
RUN cd /var/www/html/ampache/public && \
for DIR in rest play channel; do mv -v $DIR/.htaccess.dist $DIR/.htaccess; done
RUN a2enmod rewrite && \
a2enmod ssl && \
ln -s html/ampache /var/www/ampache
# Mark things writable. This list is in lib/debug.lib.php
# For auto-update to work, the entire thing has to be owned by www-data
RUN chown -R www-data /var/www/html/ampache
# Compatibility - avconv was available in stretch; in buster, it's
# all ffmpeg. For existing configs that use it:
RUN ln -s ffmpeg /usr/bin/avconv
RUN /usr/local/bin/docker-wipelogs
RUN mv /usr/sbin/policy-rc.d /usr/sbin/policy-rc.d.disabled
EXPOSE 80 443 81
VOLUME ["/var/www/html/ampache/config"]
CMD ["/usr/local/bin/boot-debian-base"]