# Dockerfile.service
FROM your-registry/shared-base:latest

WORKDIR /app
ARG JAR_FILE=app.jar
COPY backend/gateway/target/gateway-*.jar app.jar

# Use JarLauncher and include shared.jar in classpath
ENTRYPOINT ["java", "-cp", "/shared/shared.jar:/app/app.jar", "org.springframework.boot.loader.JarLauncher"]
