ci(Docker): add --cleanup flag to install-php-extensions
Add the --cleanup flag to the install-php-extensions command to remove downloaded archives after installation, reducing the final image size. Use the --no-cache flag for the remote podman build in the deployment script to ensure a clean build from the latest source on the server.
This commit is contained in:
2
Makefile
2
Makefile
@@ -22,7 +22,7 @@ deploy: build
|
||||
deploy-server:
|
||||
@echo "Deploying to remote server $(SERVER_IP)..."
|
||||
@# Build image on the remote server
|
||||
ssh $(SERVER_USER)@$(SERVER_IP) "cd $(SERVER_PATH) && sudo podman build -t $(IMG) ."
|
||||
ssh $(SERVER_USER)@$(SERVER_IP) "cd $(SERVER_PATH) && sudo podman build --no-cache -t $(IMG) ."
|
||||
@# Generate temporary merged YAML for server in /tmp
|
||||
@sudo kubectl create configmap mkm-admin-config --from-env-file=.env --dry-run=client -o yaml > /tmp/server_deploy.yaml
|
||||
@echo "---" >> /tmp/server_deploy.yaml
|
||||
|
||||
Reference in New Issue
Block a user