Files
docker-glpi/src/Dockerfile
paspo d26c00bad3
Some checks failed
Container Publish / on-success-skip (push) Has been skipped
Container Publish / update docker manifest (push) Has been cancelled
Container Publish / build-image (amd64) (push) Has been cancelled
Container Publish / build-image (arm64) (push) Has been cancelled
glpi upgrade
2025-10-02 09:51:47 +02:00

31 lines
1.2 KiB
Docker

ARG ALPINE_VERSION=3.22
FROM alpine:${ALPINE_VERSION}
ARG GLPI_VERSION
RUN \
mkdir -p /logs /config /files /marketplace && \
apk -U upgrade && \
apk add --no-cache curl nginx php83 php83-bz2 php83-ctype php83-curl php83-dom php83-exif \
php83-fileinfo php83-fpm php83-gd php83-iconv php83-intl php83-ldap php83-mysqli php83-bcmath \
php83-opcache php83-openssl php83-pecl-apcu php83-pecl-redis php83-phar php83-session \
php83-simplexml php83-sodium php83-tokenizer php83-xml php83-zip php83-xmlreader php83-xmlwriter && \
wget -O /usr/local/bin/composer https://getcomposer.org/download/2.5.8/composer.phar && \
chmod +x /usr/local/bin/composer && \
wget -O - https://github.com/glpi-project/glpi/releases/download/${GLPI_VERSION}/glpi-${GLPI_VERSION}.tgz | tar xz -C /var/www
# GLPI 10.x will work only with PHP up to 8.3.
# do not trust README.md from glpi github (it says it works with 8.4, but it dies if >=8.4.0)
# this are needed if you want to manually install GLPI from git
# RUN \
# apk add patch npm gettext
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" ]