I have a service with two main classes, one for migrations and the other for the actual service. The two bash/bat files are generated, but I need a custom entrypoint script to call both scripts (to perform migrations first and then to run the service).
I'm getting the following error upon doing docker:publishLocal
[error] #10 ERROR: "/opt" not found: not found
[error] ------
[error] > [stage0 6/13] COPY opt /opt:
[error] ------
Without the setting Docker / dockerPackageMappings += (baseDirectory.value / "docker" / "docker-entrypoint.sh" -> "docker-entrypoint.sh") everything works fine but I can't override the entrypoint.
Is there any example that I can refer to for using a custom script as entrypoint?
I have a service with two main classes, one for migrations and the other for the actual service. The two bash/bat files are generated, but I need a custom entrypoint script to call both scripts (to perform migrations first and then to run the service).
My docker settings are as follows:
This is the generated Dockerfile
The contents of the
docker/stage
folder are:I'm getting the following error upon doing
docker:publishLocal
Without the setting
Docker / dockerPackageMappings += (baseDirectory.value / "docker" / "docker-entrypoint.sh" -> "docker-entrypoint.sh")
everything works fine but I can't override the entrypoint.Is there any example that I can refer to for using a custom script as entrypoint?