Add Dockerfiles for service and base images
This commit is contained in:
9
backend/Dockerfile.service
Normal file
9
backend/Dockerfile.service
Normal file
@@ -0,0 +1,9 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user