refactor(docker): use configurable SLHAF_HUB_IMAGE in compose instead of local build

This commit is contained in:
2026-02-25 17:17:14 +08:00
parent bcf0a316a6
commit f332159217

View File

@@ -1,12 +1,6 @@
services: services:
slhaf-hub: slhaf-hub:
build: image: ${SLHAF_HUB_IMAGE:-docker.io/slhafzjw/slhaf-hub:latest}
context: .
dockerfile: Dockerfile
args:
BUILD_IMAGE: ${BUILD_IMAGE:-gradle:9.0.0-jdk17}
RUNTIME_IMAGE: ${RUNTIME_IMAGE:-eclipse-temurin:17-jre}
image: slhaf-hub:latest
container_name: slhaf-hub container_name: slhaf-hub
restart: unless-stopped restart: unless-stopped
ports: ports: