|
|
@@ -10,13 +10,8 @@ COPY /docker/typo3/conf/xdebug.ini /usr/local/etc/php/conf.d/
|
|
|
# Configure apache
|
|
|
COPY /docker/typo3/conf/typo3.conf /etc/apache2/sites-available/
|
|
|
|
|
|
-# Prepare typo3 install
|
|
|
-COPY /apps/ot_typo3/docker/mount/composer.json /var/www/typo3/
|
|
|
-COPY /apps/ot_typo3/docker/mount/LocalConfiguration.php /var/www/typo3/public/typo3conf/
|
|
|
-COPY /apps/ot_typo3/docker/conf/sites.tar.gz /var/www/typo3/config/
|
|
|
-
|
|
|
# Set workdir
|
|
|
-WORKDIR /var/www/typo3
|
|
|
+WORKDIR /var/www
|
|
|
|
|
|
RUN \
|
|
|
# Install utilities and php extensions
|
|
|
@@ -37,34 +32,12 @@ RUN \
|
|
|
php composer-setup.php; \
|
|
|
php -r "unlink('composer-setup.php');"; \
|
|
|
|
|
|
- # Install Typo3
|
|
|
- php composer.phar install; \
|
|
|
-
|
|
|
- # Install the ot_typo3 extensions:
|
|
|
- mkdir -p /var/www/typo3/public/typo3conf/ext; \
|
|
|
- ln -s /var/opentalent/git/ot_typo3/ot_templating /var/www/typo3/public/typo3conf/ext/ot_templating \
|
|
|
- && ln -s /var/opentalent/git/ot_typo3/ot_connect /var/www/typo3/public/typo3conf/ext/ot_connect \
|
|
|
- && ln -s /var/opentalent/git/ot_typo3/ot_optimizer /var/www/typo3/public/typo3conf/ext/ot_optimizer \
|
|
|
- && ln -s /var/opentalent/git/ot_typo3/ot_admin /var/www/typo3/public/typo3conf/ext/ot_admin; \
|
|
|
- chown -R www-data:www-data /var/www/typo3; \
|
|
|
-
|
|
|
- # Untar the sites.yaml
|
|
|
- mkdir -p /var/www/typo3/config; \
|
|
|
- tar -xzf /var/www/typo3/config/sites.tar.gz -C /var/www/typo3/config/; \
|
|
|
-
|
|
|
- # Finalize installation
|
|
|
- mkdir -p /var/www/typo3/var; \
|
|
|
- php composer.phar dumpautoload; \
|
|
|
- chown -R www-data:www-data /var/www/typo3/; \
|
|
|
-
|
|
|
# Configure apache
|
|
|
rm /etc/apache2/sites-available/000-default.conf && rm /etc/apache2/sites-available/default-ssl.conf; \
|
|
|
a2ensite typo3; \
|
|
|
- service apache2 restart; \
|
|
|
-
|
|
|
- # enable the install tool
|
|
|
- touch /var/www/typo3/public/typo3conf/ENABLE_INSTALL_TOOL
|
|
|
-
|
|
|
-# Copy the cli shortcut
|
|
|
-COPY /docker/typo3/conf/cli /var/www/typo3/
|
|
|
+ service apache2 restart;
|
|
|
|
|
|
+# Declare the entrypoint.sh file
|
|
|
+COPY ./docker/typo3/entrypoint.sh /entrypoint.sh
|
|
|
+RUN chmod +x /entrypoint.sh
|
|
|
+ENTRYPOINT ["/entrypoint.sh"]
|