LibreY- privacy respecting meta search engine |
git clone git://git.acid.vegas/LibreY.git |
Log | Files | Refs | Archive | README | LICENSE |
Dockerfile (2084B)
1 FROM alpine:3.18 2 3 WORKDIR "/var/www/html" 4 5 ADD "." "." 6 7 # Docker metadata contains information about the maintainer, such as the name, repository, and support email 8 # See more: https://docs.docker.com/config/labels-custom-metadata/ 9 LABEL name="LibreY" \ 10 description="Framework and javascript free privacy respecting meta search engine" \ 11 version="1.0" \ 12 vendor="Ahwx <ahwx.org>" \ 13 maintainer="Ahwx <ahwx.org>" \ 14 url="https://github.com/Ahwxorg/LibreY" \ 15 authors="https://github.com/Ahwxorg/LibreY/contributors" 16 17 # Include arguments as temporary environment variables to be handled by Docker during the image build process 18 # Change or add new arguments to customize the image generated by 'docker build' command 19 ARG DOCKER_SCRIPTS="docker" 20 ARG NGINX_PORT=8080 21 # Set this argument during build time to indicate that the path is for php's www.conf 22 ARG WWW_CONFIG="/etc/php82/php-fpm.d/www.conf" 23 24 # Customize the environment during both execution and build time by modifying the environment variables added to the container's shell 25 # When building your image, make sure to set the 'TZ' environment variable to your desired time zone location, for example 'America/Sao_Paulo' 26 # See more: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List 27 ENV TZ="America/New_York" 28 29 # Install required packages 30 RUN apk add gettext php82 php82-fpm php82-dom php82-curl php82-json php82-apcu nginx --no-cache 31 32 # Configure PHP-FPM to listen on a Unix socket instead of a TCP port, which is more secure and efficient 33 RUN touch /run/php-fpm82.sock && chown nginx:nginx "/run/php-fpm82.sock" 34 RUN sed -i 's/^\s*listen = 127.0.0.1:9000/listen = \/run\/php-fpm82.sock/' ${WWW_CONFIG} &&\ 35 sed -i 's/^\s*;\s*listen.owner = nobody/listen.owner = nginx/' ${WWW_CONFIG} &&\ 36 sed -i 's/^\s*;\s*listen.group = nobody/listen.group = nginx/' ${WWW_CONFIG} &&\ 37 sed -i 's/^\s*;\s*listen.mode = 0660/listen.mode = 0660/' ${WWW_CONFIG} 38 39 EXPOSE ${NGINX_PORT} 40 41 # Configures the container to be run as an executable. 42 ENTRYPOINT ["/bin/sh", "-c", "docker/entrypoint.sh"]