mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-15 15:20:44 +00:00
fbef486ad4
By switching from ubuntu:18.04 to alpine, we reduce the local image size from 510 to 87 Mb. Because we don't use bash anymore, it's difficult to rely on chroot, so we just get rid of docker-entrypoint.sh
12 lines
349 B
Docker
12 lines
349 B
Docker
FROM python:3.6-alpine
|
|
|
|
RUN apk add --no-cache curl
|
|
RUN pip install jinja2
|
|
|
|
RUN mkdir /openedx /openedx/config /openedx/templates
|
|
COPY ./bin/configurator /usr/local/bin
|
|
WORKDIR /openedx/
|
|
|
|
CMD configurator -c /openedx/config/config.json interactive && \
|
|
configurator -c /openedx/config/config.json substitute /openedx/templates/ /openedx/output/
|