You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 line
1.1KB

  1. FROM php:8.2-fpm-bookworm
  2. RUN apt-get update \
  3. && apt-get install -y --no-install-recommends nginx git unzip libsqlite3-dev \
  4. && docker-php-ext-install pdo_mysql pdo_sqlite \
  5. && rm -rf /var/lib/apt/lists/* \
  6. && rm -f /etc/nginx/conf.d/default.conf /etc/nginx/sites-enabled/default
  7. COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
  8. RUN git clone --depth 1 https://github.com/phpLiteAdmin/pla.git /var/www/phpliteadmin \
  9. && rm -rf /var/www/phpliteadmin/.git /var/www/phpliteadmin/docs
  10. WORKDIR /var/www/html
  11. COPY . /var/www/html
  12. COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
  13. COPY docker/nginx/phpliteadmin.conf /etc/nginx/conf.d/phpliteadmin.conf
  14. COPY docker/php/app.ini /usr/local/etc/php/conf.d/app.ini
  15. COPY docker/phpliteadmin/phpliteadmin.config.php /var/www/phpliteadmin/phpliteadmin.config.php
  16. COPY docker/start-container.sh /usr/local/bin/start-container
  17. RUN chmod +x /usr/local/bin/start-container \
  18. && chown -R www-data:www-data /var/www/phpliteadmin \
  19. && mkdir -p /run/php
  20. EXPOSE 80
  21. CMD ["start-container"]

Powered by TurnKey Linux.