forked from jdelacasa/docker-eyeOS_1.9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (34 loc) · 1.34 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM ubuntu
MAINTAINER Andre Mesquita <avmesquita@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
RUN echo "root:Changeme" | chpasswd
# install ssh and supervisord
RUN apt-get update
RUN apt-get install -y curl ssh supervisor apt-utils
RUN mkdir /var/run/sshd
RUN chown root:root /var/run/sshd
RUN mkdir /var/log/supervisord
# install mysql
RUN apt-get install -y mysql-server mysql-client
# install apache2 and php
RUN apt-get install -y php7.1 apache2
# install phpmyadmin
RUN apt-get install -y phpmyadmin
RUN echo "\$cfg['Servers'][\$i]['AllowNoPassword'] = TRUE;" >> /etc/phpmyadmin/config.inc.php
RUN cp /etc/phpmyadmin/apache.conf /etc/apache2/sites-enabled/001-phpmyadmin
RUN a2enmod rewrite
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# eye2 installation
RUN apt-get -y install wget
RUN apt-get -y install python
RUN apt-get -y install zip unzip exif
RUN apt-get -y install libimage-exiftool-perl
#mysql
RUN /etc/init.d/mysql start ; echo "CREATE USER 'eyeos'@'localhost' IDENTIFIED BY 'password';" | mysql
RUN /etc/init.d/mysql start ; echo "CREATE DATABASE eyeos;" | mysql
RUN /etc/init.d/mysql start ; echo "GRANT ALL PRIVILEGES ON eyeos.* TO 'eyeos'@'localhost';" | mysql
RUN /etc/init.d/mysql start ;echo "FLUSH PRIVILEGES;" | mysql
#RUN /etc/init.d/mysql stop
EXPOSE 22 3306 9001 80
#ENTRYPOINT
CMD ["/usr/bin/supervisord"]