-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (25 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
29 lines (25 loc) · 1.1 KB
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 ubuntu:16.04
MAINTAINER jstarcher@gmail.com
ENV DEBIAN_FRONTEND noninteractive
ENV MYSQL_ADMIN_LOGIN root
ENV MYSQL_ADMIN_PASSWORD root
ENV user root
ENV password root
ENV dbname bluecherry
COPY .my.cnf /root/.my.cnf
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN { \
echo mysql-community-server mysql-community-server/data-dir select ''; \
echo mysql-community-server mysql-community-server/root-pass password ''; \
echo mysql-community-server mysql-community-server/re-root-pass password ''; \
echo mysql-community-server mysql-community-server/remove-test-db select false; \
} | debconf-set-selections && \
apt-get update && \
apt-get install -y supervisor wget && \
wget -q http://ubuntu.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add - && \
wget --output-document=/etc/apt/sources.list.d/bluecherry-unstable-xenial.list http://unstable.bluecherrydvr.com/sources.list.d/bluecherry-xenial.list && \
apt-get update && \
apt-get install -y bluecherry && \
mkdir /var/log/supervisor
EXPOSE 80
CMD ["/usr/bin/supervisord"]