Dockerfile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # syntax = edrevo/dockerfile-plus
  2. ARG VERSION="3.17"
  3. FROM alpine:${VERSION} AS runner
  4. WORKDIR "/var/www/html"
  5. # Docker metadata contains information about the maintainer, such as the name, repository, and support email
  6. # Please add any necessary information or correct any incorrect information
  7. # See more: https://docs.docker.com/config/labels-custom-metadata/
  8. LABEL name="LibreX" \
  9. description="Framework and javascript free privacy respecting meta search engine" \
  10. version="1.0" \
  11. vendor="Hnhx Femboy<femboy.hu>" \
  12. url="https://github.com/hnhx/librex" \
  13. usage="https://github.com/hnhx/librex/wiki" \
  14. authors="https://github.com/hnhx/librex/contributors"
  15. # Include arguments as temporary environment variables to be handled by Docker during the image build process
  16. # Change or add new arguments to customize the image generated by 'docker build' command
  17. ARG DOCKER_SCRIPTS="docker"
  18. # Customize the environment during both execution and build time by modifying the environment variables added to the container's shell
  19. # When building your image, make sure to set the 'TZ' environment variable to your desired time zone location, for example 'America/Sao_Paulo'
  20. # See more: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
  21. ENV TZ="America/New_York"
  22. # Include docker scripts, docker images, and the 'GNU License' in the Librex container
  23. ADD "." "/var/www/html"
  24. # Set permissions for script files as executable scripts inside 'docker/scripts' directory
  25. RUN chmod u+x "${DOCKER_SCRIPTS}/php/prepare.sh" &&\
  26. chmod u+x "${DOCKER_SCRIPTS}/server/prepare.sh" &&\
  27. chmod u+x "${DOCKER_SCRIPTS}/entrypoint.sh" &&\
  28. chmod u+x "${DOCKER_SCRIPTS}/attributes.sh"
  29. # The following lines import all Dockerfiles from other folders so that they can be built together in the final build
  30. INCLUDE+ docker/php/php.dockerfile
  31. INCLUDE+ docker/server/nginx.dockerfile
  32. # Configures the container to be run as an executable.
  33. ENTRYPOINT ["/bin/sh", "-c", "docker/entrypoint.sh"]