I am using the oryd/hydra docker image: https://hub.docker.com/r/oryd/hydra in order to build a custom image with my own configuration.
I did create a custom directory:
mkdir sso-demo-hydra
cd sso-demo-hydra
then I create a Dockerfile using that syntax:
vi Dockerfile
the file content:
$ cat Dockerfile
FROM oryd/hydra:latest
COPY .hydra /
when building the image I get no error:
$ docker build -t sso-demo-hydra .
Sending build context to Docker daemon 8.704kB
Step 1/2 : FROM oryd/hydra:latest
---> 50f0a70dbda9
Step 2/2 : COPY .hydra /
---> Using cache
---> 3539634979c0
Successfully built 3539634979c0
Successfully tagged sso-demo-hydra:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
And when I launch the application I get the following warning:
sso-demo-hydra | Config file not found because "Config File ".hydra" Not Found in "[/]""
PS: there is a .hydra file in the context directory
Thanks for your support.