forked from erseco/alpine-moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce slim version of container image
- Loading branch information
Showing
7 changed files
with
129 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,10 @@ ARG BASH_VERSION="=5.2.21-r0" | |
ARG ARG_WEB_PATH='/var/www/html' | ||
ENV WEB_PATH=${ARG_WEB_PATH} | ||
|
||
# controls whether the remaining steps should use git clone or simply download from git repo | ||
ARG ARG_ENABLE_GIT_CLONE='true' | ||
ENV ENABLE_GIT_CLONE=${ARG_ENABLE_GIT_CLONE} | ||
|
||
USER root | ||
COPY --chown=nobody rootfs/ / | ||
|
||
|
@@ -24,8 +28,8 @@ COPY --chown=nobody rootfs/ / | |
RUN apk add --no-cache \ | ||
dcron${DCRON_VERSION} \ | ||
libcap${LIBCAP_VERSION} \ | ||
git${GIT_VERSION} \ | ||
bash${BASH_VERSION} \ | ||
&& if [ "${ENABLE_GIT_CLONE}" = 'true' ]; then apk add --no-cache git${GIT_VERSION}; fi \ | ||
&& chown nobody:nobody /usr/sbin/crond \ | ||
&& setcap cap_setgid=ep /usr/sbin/crond \ | ||
# Clean up unused files from base image | ||
|
@@ -62,7 +66,7 @@ ENV MOODLE_GIT_URL=${ARG_MOODLE_GIT_URL} \ | |
SMTP_HOST=smtp.gmail.com \ | ||
SMTP_PORT=587 \ | ||
[email protected] \ | ||
SMTP_PASSWORD=your_password \ | ||
SMTP_PASSWORD=your_password \ | ||
SMTP_PROTOCOL=tls \ | ||
MOODLE_MAIL_NOREPLY_ADDRESS=noreply@localhost \ | ||
MOODLE_MAIL_PREFIX=[moodle] \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters