-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (31 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ARG PHP_VERSION=8.2
ARG DISTRO=alpine
FROM docker.io/tiredofit/nginx-php-fpm:${PHP_VERSION}-${DISTRO}
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
ARG LIMESURVEY_VERSION
ENV LIMESURVEY_VERSION=${LIMESURVEY_VESION:-"6.10.5+250217"} \
PHP_ENABLE_CREATE_SAMPLE_PHP=FALSE \
PHP_ENABLE_FILEINFO=TRUE \
PHP_ENABLE_IMAP=TRUE \
PHP_ENABLE_LDAP=TRUE \
PHP_ENABLE_MBSTRING=TRUE \
PHP_ENABLE_SESSION=TRUE \
PHP_ENABLE_SIMPLEXML=TRUE \
PHP_ENABLE_SODIUM=TRUE \
PHP_ENABLE_XMLWRITER=TRUE \
PHP_ENABLE_ZIP=TRUE \
NGINX_WEBROOT="/www/html" \
IMAGE_NAME="tiredofit/limesurvey" \
IMAGE_REPO_URL="https://github.com/tiredofit/docker-limesurvey/"
RUN source /assets/functions/00-container && \
set +x && \
package update && \
package upgrade && \
mkdir -p "${NGINX_WEBROOT}" && \
curl -SL https://github.com/LimeSurvey/LimeSurvey/archive/"${LIMESURVEY_VERSION}".tar.gz | tar xvfz - --strip 1 -C "${NGINX_WEBROOT}" && \
rm -rf \
"${NGINX_WEBROOT}"/docs \
"${NGINX_WEBROOT}"/tests \
"${NGINX_WEBROOT}"/*.md && \
package cleanup
COPY install /