feat: update Docker build to support amd64 and arm64, use --push

This commit is contained in:
William Valentin
2025-09-08 22:09:33 -07:00
parent 2bda21dc2a
commit 13a06b71d1

View File

@@ -71,10 +71,10 @@ test-watch: ## Run unit tests in watch mode
docker-build: ## Build Docker image for local development
@echo "Building Docker image for $(APP_NAME): $(DOCKER_IMAGE)"
@docker buildx build --platform linux/amd64 \
@docker buildx build --platform linux/amd64,linux/arm64 \
--build-arg NODE_ENV=production \
--build-arg APP_NAME=$(APP_NAME) \
-t $(DOCKER_IMAGE) --load .
-t $(DOCKER_IMAGE) --push .
docker-run: ## Build and run Docker container
@echo "Building and running $(APP_NAME) container: $(DOCKER_IMAGE)"