mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
I do not know why, but if you try to combine both the apt-get lines, the server crashes. This works, and doesn’t cause any problems apart from being a little messier in looks, so 🤷♂️
23 lines
801 B
Docker
23 lines
801 B
Docker
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 DEBIAN_FRONTEND=noninteractive apt-get install -y sudo imagemagick openjdk-8-jre python3 pip calibre
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN pip install standardebooks
|
|
|
|
RUN sudo addgroup committers
|
|
RUN sudo adduser se
|
|
RUN sudo usermod -g committers se
|
|
|
|
RUN mkdir -p /standardebooks.org/web
|
|
RUN mkdir /var/log/local
|
|
|
|
RUN a2enmod headers expires ssl rewrite proxy proxy_fcgi
|
|
|
|
# Disable opcaching for dynamic PHP reloading
|
|
RUN echo "opcache.enable=0" >> /etc/php/7.4/fpm/php.ini
|
|
|
|
EXPOSE 443
|
|
ENTRYPOINT ["/standardebooks.org/web/vms/docker/start-server.sh"]
|