wikindx/fpm/Containerfile
Dominik Meyer 337d85fe81
All checks were successful
continuous-integration/drone/push Build is passing
feat: updated to current wikindx version
2024-08-02 23:06:55 +02:00

63 lines
2.6 KiB
Docker

FROM alpine:latest as builder
RUN apk update && apk add --no-cache bash ca-certificates
RUN wget -O wikindx.tar.bz2 https://master.dl.sourceforge.net/project/wikindx/6.10.2/wikindx_6.10.2.tar.bz2
RUN mkdir wikindx; tar jxf wikindx.tar.bz2 -C wikindx --strip-components 1
FROM alpine:latest
RUN apk update && apk add --no-cache bash ca-certificates tini php82-fpm php82-mysqli php82-gd \
php82-gettext php82-intl php82-zip php82-ldap php82-pgsql php82-sqlite3 php82-session \
php82-session php82-xmlreader php82-simplexml php82-mbstring php82-fileinfo php82-dom \
php82-curl php82-xml php82-ctype
WORKDIR /var/www/html
RUN addgroup fpm && adduser -u 8888 -D -G fpm fpm
RUN rm -rf /var/www/html/*
COPY --from=builder /wikindx /var/www/html/
RUN chown -R fpm.fpm /var/www/html/
ADD files/wikindx_pool.conf /etc/php/8.2/fpm/pool/
ADD files/entryPoint.sh /entryPoint.sh
RUN chmod a+x /entryPoint.sh
RUN chown -R fpm.fpm /var/log/php82
RUN ln -s /dev/stdout /var/log/php82/error.log
RUN ln -s /dev/stdout /var/log/php82/access.log
USER fpm
ENTRYPOINT ["/sbin/tini", "--", "/entryPoint.sh"]
# FROM php:7-apache-buster
# WORKDIR /var/www/html
# RUN sed -i 's/deb.debian.org/ftp.de.debian.org/g' /etc/apt/sources.list
# RUN apt-get -q -y update && apt-get -q -y upgrade
# RUN apt-get -q -y install default-libmysqlclient-dev wget mariadb-server
# RUN apt-get -q -y install libpng-dev libicu-dev bibutils libzip-dev
# RUN apt-get -q -y install libldap2-dev
# RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
# RUN docker-php-ext-install gd && docker-php-ext-enable gd
# RUN docker-php-ext-install gettext && docker-php-ext-enable gettext
# RUN docker-php-ext-install intl && docker-php-ext-enable intl
# RUN docker-php-ext-install zip && docker-php-ext-enable zip
# RUN docker-php-ext-install ldap && docker-php-ext-enable ldap
# COPY create.sql .
# COPY docker-entrypoint-wikindx /usr/local/bin/
# RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
# RUN sed -i 's/post_max_size.=.*/post_max_size = 100M/' /usr/local/etc/php/php.ini
# RUN sed -i 's/upload_max_filesize.=.*/upload_max_filesize = 100M/' /usr/local/etc/php/php.ini
# RUN echo "mysql.default_socket = /var/run/mysqld/mysqld.sock" >> /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini
# RUN echo "mysqli.default_socket = /var/run/mysqld/mysqld.sock" >> /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini
# VOLUME ["/var/lib/mysql"]
# VOLUME ["/home/wikindx"]
# RUN wget -O wikindx.tar.bz2 https://phoenixnap.dl.sourceforge.net/project/wikindx/6.4.9/wikindx_6.4.9.tar.bz2;tar jxf wikindx.tar.bz2
# ENTRYPOINT ["docker-entrypoint-wikindx"]