mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
71 lines
2.0 KiB
Docker
71 lines
2.0 KiB
Docker
FROM php:8.0-fpm
|
|
LABEL maintainer="markus@martialblog.de"
|
|
|
|
# Install OS dependencies
|
|
RUN set -ex; \
|
|
apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install --no-install-recommends -y \
|
|
\
|
|
libldap2-dev \
|
|
libfreetype6-dev \
|
|
libjpeg-dev \
|
|
libonig-dev \
|
|
zlib1g-dev \
|
|
libc-client-dev \
|
|
libkrb5-dev \
|
|
libpng-dev \
|
|
libpq-dev \
|
|
libzip-dev \
|
|
libtidy-dev \
|
|
libsodium-dev \
|
|
netcat \
|
|
\
|
|
&& apt-get -y autoclean; apt-get -y autoremove; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Link LDAP library for PHP ldap extension
|
|
RUN set -ex; \
|
|
ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
|
|
|
|
# Install PHP Plugins and Configure PHP imap plugin
|
|
RUN set -ex; \
|
|
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr && \
|
|
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
|
|
docker-php-ext-install -j5 \
|
|
exif \
|
|
gd \
|
|
imap \
|
|
ldap \
|
|
mbstring \
|
|
pdo \
|
|
pdo_mysql \
|
|
pdo_pgsql \
|
|
pgsql \
|
|
sodium \
|
|
tidy \
|
|
zip
|
|
|
|
ARG version="5.3.18+220530"
|
|
ARG sha256_checksum="3b866045dcefd78dab39bcef186a8e4ca6408c08e4c43b636415e75610fa9434"
|
|
ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz"
|
|
ARG USER=www-data
|
|
ENV LIMESURVEY_VERSION=$version
|
|
|
|
# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository)
|
|
RUN set -ex; \
|
|
curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \
|
|
echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \
|
|
\
|
|
tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
|
rm -f "/tmp/limesurvey.tar.gz" && \
|
|
chown -R "$USER:$USER" /var/www/html
|
|
|
|
EXPOSE 9000
|
|
|
|
WORKDIR /var/www/html
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
USER $USER
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
CMD ["php-fpm"]
|