docker-glpi/Dockerfile

18 lines
714 B
Docker
Raw Normal View History

2023-04-19 13:19:40 +00:00
FROM alpine:3.17
ARG GLPI_VERSION=10.0.7
RUN \
mkdir -p /logs /config /files /marketplace && \
apk -U upgrade && \
apk add curl nginx php81 php81-bz2 php81-ctype php81-curl php81-dom php81-exif php81-fileinfo php81-fpm php81-gd php81-iconv php81-intl php81-ldap php81-mysqli php81-opcache php81-openssl php81-pecl-apcu php81-pecl-redis php81-phar php81-session php81-simplexml php81-sodium php81-xml php81-zip && \
wget -O - https://github.com/glpi-project/glpi/releases/download/${GLPI_VERSION}/glpi-${GLPI_VERSION}.tgz | tar xz -C /var/www
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" ]