zm-docker/Dockerfile

49 lines
813 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 \
msmtp \
msmtp-mta
RUN wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | apt-key add - \
&& echo 'deb https://zmrepo.zoneminder.com/debian/release-1.36 buster/' >> /etc/apt/sources.list
2021-01-12 18:33:21 +01:00
RUN apt-get update
RUN apt-get install -y \
zoneminder
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 /
RUN chmod +x /entrypoint.sh
2021-01-12 18:33:21 +01:00
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