-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (22 loc) · 1005 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
# DOCKER-VERSION 1.2.0
FROM ubuntu
MAINTAINER Johannes Steu <[email protected]>
# Setup apache2
RUN apt-get update && apt-get -y install git apache2 php5 php5-apcu php5-mysql graphicsmagick php5-gd mysql-client curl && apt-get clean
RUN a2enmod rewrite
RUn a2dissite 000-default.conf
RUN echo 'date.timezone = "Europe/Berlin"' >> /etc/php5/cli/php.ini
RUN echo 'date.timezone = "Europe/Berlin"' >> /etc/php5/apache2/php.ini
RUN service apache2 restart
# install composer
RUN curl -s https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
# Checkout typo3neos
RUN cd /var/www && git clone http://git.typo3.org/Neos/Distributions/Base.git neos
RUN cd /var/www/neos && git fetch
RUN cd /var/www/neos && git checkout 1.2.1 && composer --no-dev install
ADD configure-neos.sh /configure-neos.sh
ADD assets/Settings.yaml /assets/Settings.yaml
ADD assets/neos-vhost.conf /assets/neos-vhost.conf
RUN chmod +x /configure-neos.sh
# run config script
CMD ["/configure-neos.sh"]