2018-08-05 14:26:19 +00:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
|
|
RUN apt update && \
|
2018-09-19 14:44:01 +00:00
|
|
|
apt install -y python3 python3-pip curl
|
2018-08-05 14:26:19 +00:00
|
|
|
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
|
2018-09-15 14:19:35 +00:00
|
|
|
COPY ./templates /openedx/templates
|
2018-08-05 14:26:19 +00:00
|
|
|
WORKDIR /openedx
|
|
|
|
|
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
2018-09-15 14:19:35 +00:00
|
|
|
CMD ./configure.py -c /openedx/config/config.json interactive && \
|
|
|
|
./configure.py -c /openedx/config/config.json substitute ./templates/ /openedx/config
|