canvas-lms/Dockerfile.jenkins.karma-ru...

15 lines
652 B
Docker

FROM local/karma-builder
USER docker
COPY --chown=docker:docker . /usr/src/app
RUN cp -v docker-compose/config/redis.yml config && \
cp -v docker-compose/config/selenium.yml config/ && \
cp -vR docker-compose/config/new-jenkins/* config/ && \
cp -v config/delayed_jobs.yml.example config/delayed_jobs.yml && \
cp -v config/domain.yml.example config/domain.yml && \
cp -v config/external_migration.yml.example config/external_migration.yml && \
cp -v config/outgoing_mail.yml.example config/outgoing_mail.yml
ARG RAILS_LOAD_ALL_LOCALES=0
RUN bash -c "if [[ "$RAILS_LOAD_ALL_LOCALES" == "1" ]]; then bundle exec rails i18n:generate_js; fi"