refactor: reuse common scripts and files

move common scripts to build/common
This commit is contained in:
Revant Nandgaonkar
2020-02-20 18:01:23 +05:30
parent 347b94dee2
commit 242708df0c
41 changed files with 62 additions and 545 deletions

View File

@@ -29,11 +29,11 @@ RUN virtualenv env \
&& git clone --depth 1 -o upstream https://github.com/frappe/frappe \
&& pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/frappe
COPY ./commands/* /home/frappe/frappe-bench/commands/
COPY ./common_site_config.json.template /opt/frappe/common_site_config.json.template
COPY build/common/commands/* /home/frappe/frappe-bench/commands/
COPY build/common/common_site_config.json.template /opt/frappe/common_site_config.json.template
# Setup docker-entrypoint
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
COPY build/common/worker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN ln -s /usr/local/bin/docker-entrypoint.sh / # backwards compat
WORKDIR /home/frappe/frappe-bench/sites