2020-11-12 03:21:00 +08:00
|
|
|
FROM local/webpack-cache
|
2020-11-17 02:08:07 +08:00
|
|
|
|
2020-12-08 00:52:44 +08:00
|
|
|
ARG COMPILE_ADDITIONAL_ASSETS=0
|
|
|
|
|
2020-11-17 02:08:07 +08:00
|
|
|
COPY --chown=docker:docker . ${APP_HOME}
|
|
|
|
|
2020-12-08 00:52:44 +08:00
|
|
|
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
|
|
|
|
|
2020-11-17 02:08:07 +08:00
|
|
|
RUN bash -c "if [[ "$COMPILE_ADDITIONAL_ASSETS" == "1" ]]; then bundle exec rails doc:api css:styleguide; fi"
|