Skip to content

Commit

Permalink
add german language pack to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikBadenhop committed Nov 11, 2024
1 parent 339f62e commit 2c5236b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion moodle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY scripts/install/downloadPlugins.sh /downloadPlugins.sh
RUN chmod +x /downloadMoodle.sh /downloadPlugins.sh

RUN apt-get update && apt-get upgrade -y && \
apt-get install -y curl wget gpg jq && \
apt-get install -y curl wget gpg jq unzip && \
rm -rf /var/lib/apt/lists/*

# Install moosh for plugin management
Expand All @@ -25,6 +25,10 @@ RUN curl -L https://github.com/tmuras/moosh/archive/refs/tags/1.21.tar.gz -o moo
ln -s /moosh/moosh.php /usr/local/bin/moosh

RUN /downloadMoodle.sh
RUN mkdir /bitnami/moodledata/lang && \
MAJOR_MINOR=$(echo "$MOODLE_VERSION" | cut -d. -f1,2) && \
curl -L https://download.moodle.org/download.php/direct/langpack/4.1/de.zip --output de.zip && \
unzip de.zip -d /bitnami/moodledata/lang

# Install plugins to the image
RUN mkdir /plugins && /downloadPlugins.sh
Expand All @@ -42,6 +46,7 @@ RUN echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen
COPY --from=build "/moodle-${MOODLE_VERSION}.tgz" "/moodle-${MOODLE_VERSION}.tgz"
COPY --from=build /moosh /moosh
COPY --from=build /plugins /plugins
COPY --from=build /bitnami/moodledata/lang /bitnami/moodledata/lang

COPY scripts/init/entrypoint.sh /scripts/entrypoint.sh
COPY scripts/init/updateCheck.sh /scripts/updateCheck.sh
Expand Down

0 comments on commit 2c5236b

Please sign in to comment.