2023-05-16 09:16:16 +00:00
|
|
|
FROM alpine:3.18
|
2023-07-13 12:40:40 +00:00
|
|
|
ARG GLPI_VERSION
|
2023-04-19 13:19:40 +00:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
mkdir -p /logs /config /files /marketplace && \
|
|
|
|
apk -U upgrade && \
|
2023-07-12 08:16:10 +00:00
|
|
|
apk add curl nginx php82 php82-bz2 php82-ctype php82-curl php82-dom php82-exif \
|
2023-07-09 22:12:45 +00:00
|
|
|
php82-fileinfo php82-fpm php82-gd php82-iconv php82-intl php82-ldap php82-mysqli \
|
|
|
|
php82-opcache php82-openssl php82-pecl-apcu php82-pecl-redis php82-phar php82-session \
|
2023-07-12 07:54:12 +00:00
|
|
|
php82-simplexml php82-sodium php82-tokenizer php82-xml php82-zip php82-xmlreader php82-xmlwriter && \
|
2023-07-12 08:16:10 +00:00
|
|
|
wget -O /usr/local/bin/composer https://getcomposer.org/download/2.5.8/composer.phar && \
|
|
|
|
chmod +x /usr/local/bin/composer && \
|
|
|
|
ln -s /usr/bin/php82 /usr/bin/php && \
|
2023-04-19 13:19:40 +00:00
|
|
|
wget -O - https://github.com/glpi-project/glpi/releases/download/${GLPI_VERSION}/glpi-${GLPI_VERSION}.tgz | tar xz -C /var/www
|
|
|
|
|
2023-07-13 12:40:12 +00:00
|
|
|
# this are needed if you want to manually install GLPI from git
|
|
|
|
# RUN \
|
|
|
|
# apk add patch npm gettext
|
|
|
|
|
2023-04-19 13:19:40 +00:00
|
|
|
COPY rootfs /
|
|
|
|
|
|
|
|
# config test
|
|
|
|
RUN nginx -t
|
|
|
|
|
|
|
|
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:80/fpm-ping
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/bin/sh", "/start.sh" ]
|