-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathContainerfile
More file actions
76 lines (68 loc) · 2.77 KB
/
Containerfile
File metadata and controls
76 lines (68 loc) · 2.77 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# SPDX-FileCopyrightText: © 2026 Nfrastack <code@nfrastack.com>
#
# SPDX-License-Identifier: MIT
ARG \
BASE_IMAGE
FROM ${BASE_IMAGE}
LABEL \
org.opencontainers.image.title="Moodle" \
org.opencontainers.image.description="Learning Management System" \
org.opencontainers.image.url="https://hub.docker.com/r/nfrastack/moodle" \
org.opencontainers.image.documentation="https://github.com/nfrastack/container-moodle/blob/main/README.md" \
org.opencontainers.image.source="https://github.com/nfrastack/container-moodle.git" \
org.opencontainers.image.authors="Nfrastack <code@nfrastack.com>" \
org.opencontainers.image.vendor="Nfrastack <https://www.nfrastack.com>" \
org.opencontainers.image.licenses="MIT"
ARG \
MOOSH_VERSION="1.27" \
MOOSH_REPO_URL="https://github.com/tmuras/moosh"
COPY CHANGELOG.md /usr/src/container/CHANGELOG.md
COPY LICENSE /usr/src/container/LICENSE
COPY README.md /usr/src/container/README.md
ENV \
IMAGE_NAME="nfrastack/moodle" \
IMAGE_REPO_URL="https://github.com/nfrastack/container-moodle"
RUN echo "" && \
BUILD_ENV=" \
10-nginx/NGINX_WEBROOT=/www/moodle \
10-nginx/NGINX_SITE_ENABLED=moodle \
10-nginx/NGINX_INDEX_FILE=index.php \
20-php-fpm/PHP_ENABLE_CREATE_SAMPLE_PHP=FALSE \
20-php-fpm/PHP_MODULE_ENABLE_SOAP=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_SODIUM=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_XMLRPC=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_ZIP=TRUE \
" \
&& \
\
MOODLE_RUN_DEPS_ALPINE=" \
aspell \
email \
git \
graphviz \
python3\
sassc \
texlive \
" \
&& \
\
source /container/base/functions/container/build && \
container_build_log image && \
package update && \
package upgrade && \
package install \
MOODLE_RUN_DEPS \
&& \
php-ext prepare && \
php-ext reset && \
php-ext enable core && \
echo "max_input_vars = 5000" >> /container/data/php-fpm/cli/php.ini && \
echo "zend.exception_ignore_args = On" >> /container/data/php-fpm/cli/php.ini && \
clone_git_repo "${MOOSH_REPO_URL}" "${MOOSH_VERSION}" /opt/moosh && \
cd /opt/moosh && \
composer install --ignore-platform-reqs && \
ln -s moosh.php /usr/local/bin/moosh && \
container_build_log add "Moosh" "${MOOSH_VERSION}" "${MOOSH_REPO_URL}" && \
rm -rf /opt/moosh/.git && \
package cleanup
COPY rootfs /