Commit 12b236b8 authored by Abhishek's avatar Abhishek
Browse files

prebaked dta file added

parent 9c56e520
Pipeline #12310 failed with stage
# 🧩 Base image (stable Moodle environment)
FROM hftstuttgart/cotaproject_moodle:base
# 👤 Switch to root to install plugin and dependencies
USER root
# Set working directory inside container
WORKDIR /var/www/html
# 🗂️ Copy automation setup and environment scripts
COPY ./script_step1.sh /usr/local/bin/script_step1.sh
COPY ./moodle_env.sh /usr/local/bin/moodle_env.sh
# Give execution permissions
RUN chmod +x /usr/local/bin/script_step1.sh /usr/local/bin/moodle_env.sh
# 🧠 Keep a record of the plugin commit hash (to avoid unnecessary re-clones)
# This file will be used by script_step1.sh to skip cloning if plugin hasn't changed
COPY .last_dta_commit /usr/local/bin/.last_dta_commit
# 🔧 Run plugin installation logic
RUN /usr/local/bin/script_step1.sh
# 🧹 Clean up cache (optional)
RUN rm -rf /var/lib/apt/lists/* /tmp/*
# 👤 Switch back to the web server user for runtime
USER www-data
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment