Fix Dockerfile
- migrate to Ubuntu Trusty Tahr, which is the latest LTS release - add a user that is allowed to login via SSH - Fix apache configuration
This commit is contained in:
parent
baa305c0ed
commit
bd3e79015b
11
Dockerfile
11
Dockerfile
|
@ -1,6 +1,6 @@
|
||||||
# ZoneMinder
|
# ZoneMinder
|
||||||
|
|
||||||
FROM ubuntu:precise
|
FROM ubuntu:trusty
|
||||||
MAINTAINER Kyle Johnson <kjohnson@gnulnx.net>
|
MAINTAINER Kyle Johnson <kjohnson@gnulnx.net>
|
||||||
|
|
||||||
# Let the container know that there is no tty
|
# Let the container know that there is no tty
|
||||||
|
@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
|
||||||
libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf libjpeg-turbo8-dev \
|
libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf libjpeg-turbo8-dev \
|
||||||
libjpeg-turbo8 libtheora-dev libvorbis-dev libvpx-dev libx264-dev libmp4v2-dev libav-tools mysql-client \
|
libjpeg-turbo8 libtheora-dev libvorbis-dev libvpx-dev libx264-dev libmp4v2-dev libav-tools mysql-client \
|
||||||
apache2 php5 php5-mysql apache2-mpm-prefork libapache2-mod-php5 php5-cli openssh-server \
|
apache2 php5 php5-mysql apache2-mpm-prefork libapache2-mod-php5 php5-cli openssh-server \
|
||||||
mysql-server libvlc-dev libvlc5 libvlccore-dev libvlccore5 vlc-data libcurl4-openssl-dev \
|
mysql-server libvlc-dev libvlc5 libvlccore-dev libvlccore7 vlc-data libcurl4-openssl-dev \
|
||||||
libavformat-dev libswscale-dev libavutil-dev libavcodec-dev libavfilter-dev \
|
libavformat-dev libswscale-dev libavutil-dev libavcodec-dev libavfilter-dev \
|
||||||
libavresample-dev libavdevice-dev libpostproc-dev libv4l-dev libtool libnetpbm10-dev \
|
libavresample-dev libavdevice-dev libpostproc-dev libv4l-dev libtool libnetpbm10-dev \
|
||||||
libmime-lite-perl dh-autoreconf dpatch
|
libmime-lite-perl dh-autoreconf dpatch
|
||||||
|
@ -47,11 +47,16 @@ RUN chmod 755 /tmp/start.sh
|
||||||
RUN mkdir /var/run/sshd
|
RUN mkdir /var/run/sshd
|
||||||
|
|
||||||
# Adding apache virtual hosts file
|
# Adding apache virtual hosts file
|
||||||
ADD utils/docker/apache-vhost /etc/apache2/sites-enabled/000-default
|
ADD utils/docker/apache-vhost /etc/apache2/sites-available/000-default.conf
|
||||||
|
ADD utils/docker/phpdate.ini /etc/php5/apache2/conf.d/25-phpdate.ini
|
||||||
|
|
||||||
# Set the root passwd
|
# Set the root passwd
|
||||||
RUN echo 'root:root' | chpasswd
|
RUN echo 'root:root' | chpasswd
|
||||||
|
|
||||||
|
# Add a user we can actually login with
|
||||||
|
RUN useradd -m -s /bin/bash -G sudo zoneminder
|
||||||
|
RUN echo 'zoneminder:zoneminder' | chpasswd
|
||||||
|
|
||||||
# Expose ssh and http ports
|
# Expose ssh and http ports
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
Loading…
Reference in New Issue