diff --git a/compose.yaml b/compose.yaml index 84aa9217..983751f4 100644 --- a/compose.yaml +++ b/compose.yaml @@ -32,6 +32,7 @@ services: bench set-config -g redis_queue "redis://$$REDIS_QUEUE"; bench set-config -g redis_socketio "redis://$$REDIS_QUEUE"; bench set-config -gp socketio_port $$SOCKETIO_PORT; + bench build --production; environment: DB_HOST: ${DB_HOST} DB_PORT: ${DB_PORT} diff --git a/images/production/Containerfile b/images/production/Containerfile index b7a8d00f..e6175bde 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -129,7 +129,6 @@ RUN export APP_INSTALL_ARGS="" && \ /home/frappe/frappe-bench && \ cd /home/frappe/frappe-bench && \ echo "{}" > sites/common_site_config.json && \ - bench build --production \ find apps -mindepth 1 -path "*/.git" | xargs rm -fr FROM base AS backend