refac(docker): half the Docker image size due to deferment of compilation (#7227)

* Merge into master (#11)

* Made the workflow build multiple images for simplicity

* New method

* Trying workflow

* Finalize

* Reset package files to upstream/master

* Edit workflow according to @si458

* Whoops accidentally removed these. Back again.

---------

Co-authored-by: Daan Selen <dselen@systemec.nl>

* Integrate the syslog compiler

* Changed logging accordingly.

* Looks to be a working prototype

* chore(docker): bump alpine version

* feat: make simon less anxious :P

---------

Co-authored-by: Daan Selen <dselen@systemec.nl>
This commit is contained in:
DaanSelen
2025-09-16 20:22:36 +02:00
committed by GitHub
parent 0f247f835f
commit ea341774e5
4 changed files with 29 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/bash
graceful_shutdown() {
echo "Received SIGTERM. Cleaning up..."
node /opt/meshcentral/meshcentral/meshcentral --stop
echo "Received SIGTERM from the container host. Cleaning up..."
kill -SIGINT $meshcentral_pid
echo "MeshCentral process stopped. Exiting..."
exit 0
@@ -11,6 +11,8 @@ trap graceful_shutdown SIGTERM
### Start MeshCentral Docker Container.
# Make the start more cleared when restarted.
echo "-------------------------------------------------------------"
date
echo "Config file: $CONFIG_FILE"