mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-16 18:15:09 +00:00
04a0fb5902
Template files are now directly loaded in the configurator container, so that it is possible to run the configurator container directly, outside of this project.
17 lines
500 B
Docker
17 lines
500 B
Docker
FROM ubuntu:18.04
|
|
|
|
RUN apt update && \
|
|
apt install -y python3 python3-pip
|
|
RUN pip3 install jinja2
|
|
|
|
RUN mkdir /openedx
|
|
VOLUME /openedx/config
|
|
COPY ./bin/configure.py /openedx/configure.py
|
|
COPY ./bin/docker-entrypoint.sh /openedx/docker-entrypoint.sh
|
|
COPY ./templates /openedx/templates
|
|
WORKDIR /openedx
|
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
|
CMD ./configure.py -c /openedx/config/config.json interactive && \
|
|
./configure.py -c /openedx/config/config.json substitute ./templates/ /openedx/config
|