mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Move the Docker files into their own folder
This commit is contained in:
parent
74276ff511
commit
c36fde5c8c
3 changed files with 2 additions and 2 deletions
18
vms/docker/Dockerfile
Normal file
18
vms/docker/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM ubuntu:20.04
|
||||
|
||||
RUN apt-get update
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y composer php-fpm php-cli php-gd php-xml php-apcu php-mbstring php-intl apache2 apache2-utils libfcgi0ldbl task-spooler
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN mkdir -p /standardebooks.org/web/config/ssl
|
||||
RUN mkdir /var/log/local
|
||||
|
||||
RUN openssl req -x509 -nodes -days 99999 -newkey rsa:4096 -subj "/CN=standardebooks.test" -keyout /standardebooks.org/web/config/ssl/standardebooks.test.key -sha256 -out /standardebooks.org/web/config/ssl/standardebooks.test.crt
|
||||
|
||||
RUN a2enmod headers expires ssl rewrite proxy proxy_fcgi
|
||||
|
||||
# Disable opcaching for dynamic PHP reloading
|
||||
RUN echo "opcache.enable=0\n" >> /etc/php/7.4/fpm/php.ini
|
||||
|
||||
EXPOSE 443
|
||||
ENTRYPOINT ["/standardebooks.org/web/vms/docker/start-server.sh"]
|
15
vms/docker/start-server.sh
Executable file
15
vms/docker/start-server.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd /standardebooks.org/web
|
||||
composer install
|
||||
|
||||
ln -s /standardebooks.org/web/config/apache/standardebooks.test.conf /etc/apache2/sites-available/
|
||||
ln -s /standardebooks.org/web/config/php/fpm/standardebooks.org.ini /etc/php/*/cli/conf.d/
|
||||
ln -s /standardebooks.org/web/config/php/fpm/standardebooks.org.ini /etc/php/*/fpm/conf.d/
|
||||
ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test.conf /etc/php/*/fpm/pool.d/
|
||||
a2ensite standardebooks.test
|
||||
/etc/init.d/apache2 start
|
||||
service php7.4-fpm restart
|
||||
|
||||
# Keep the server available by holding open the container
|
||||
tail -f /dev/null
|
Loading…
Add table
Add a link
Reference in a new issue