zm-docker/Dockerfile

47 lines
785 B
Docker
Raw Normal View History

2021-01-12 18:33:21 +01:00
FROM debian:buster-slim
2021-02-07 22:16:10 +01:00
2021-02-07 10:26:49 +01:00
ENV TZ Etc/UTC
ENV FQDN localhost
ENV SELFSIGNED 0
2021-01-12 18:33:21 +01:00
2021-02-07 22:16:10 +01:00
RUN apt-get update
2021-02-07 10:26:49 +01:00
RUN apt-get install -y \
apache2 \
mariadb-server \
php \
libapache2-mod-php \
php-mysql
2021-01-12 18:33:21 +01:00
RUN apt-get install -y \
apt-transport-https \
gnupg \
wget \
&& wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | apt-key add - \
&& echo 'deb https://zmrepo.zoneminder.com/debian/release-1.34 buster/' >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y \
2021-02-07 10:26:49 +01:00
zoneminder \
msmtp \
msmtp-mta
2021-01-12 18:33:21 +01:00
RUN adduser www-data video
RUN a2enmod ssl \
&& a2enmod rewrite \
&& a2enconf zoneminder \
&& a2ensite default-ssl.conf
2021-03-02 22:34:51 +01:00
RUN mkdir /config
2021-01-12 18:33:21 +01:00
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
2021-02-07 10:26:49 +01:00
VOLUME /config
VOLUME /var/cache/zoneminder
2021-03-02 22:34:51 +01:00
VOLUME /sslcert
2021-02-07 10:26:49 +01:00
2021-01-12 18:33:21 +01:00
EXPOSE 443/tcp