-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (35 loc) · 1004 Bytes
/
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
FROM ubuntu:trusty
MAINTAINER Rod <[email protected]>
# Install packages
RUN apt-get update \
&& apt-get install -y \
supervisor git apache2 libapache2-mod-php5 mysql-server php5-mysql pwgen php-apc php5-mcrypt \
curl \
&& echo "ServerName localhost" >> /etc/apache2/apache2.conf
##
##
WORKDIR /TheUbuntuBox-Config
COPY . /TheUbuntuBox-Config
ADD start-apache2.sh /start-apache2.sh
ADD start-mysqld.sh /start-mysqld.sh
RUN chmod 755 /*.sh
ADD my.cnf /etc/mysql/conf.d/my.cnf
RUN ln -s supervisord-apache2.conf /etc/supervisor/conf.d/supervisord-apache2.conf
RUN ln -s supervisord-mysqld.conf /etc/supervisor/conf.d/supervisord-mysqld.conf
##
##
WORKDIR /TheUbuntuBox-WebDocument
RUN ln -s /TheUbuntuBox-WebDocument /var/www
##
##
EXPOSE 80
VOLUME /TheUbuntuBox-Config
VOLUME /TheUbuntuBox-WebDocument
##
## Environment
ENV PHP_UPLOAD_MAX_FILESIZE 10M
ENV PHP_POST_MAX_SIZE 10M
##
##
ENTRYPOINT ["/bin/bash", "/TheUbuntuBox-Config/docker-entrypoint.sh"]
CMD ["supervisord -n"]