FROM oryd/hydra:v1.11.7 ARG WAIT4X_VERSION="v1.1.0" USER root RUN apk add --no-cache gcompat jq # wait4x - utilisé pour attendre les services externes nécessaires au lancement d'hydra RUN /bin/sh -c "wget -q -O /usr/local/bin/wait4x https://github.com/atkrad/wait4x/releases/download/$WAIT4X_VERSION/wait4x-linux-amd64" \ && /bin/sh -c "chmod a+x /usr/local/bin/wait4x" COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh RUN /bin/sh -c "chmod +x /usr/local/bin/docker-entrypoint.sh" COPY run-hydra.sh /usr/local/bin/run-hydra RUN /bin/sh -c "chmod +x /usr/local/bin/run-hydra" RUN /bin/sh -c "mkdir -p /home/ory" \ && /bin/sh -c "chown -R ory: /home/ory" COPY clients.d /etc/hydra/clients.d COPY reload-hydra-clients.sh /usr/local/bin/reload-hydra-clients RUN /bin/sh -c "chmod +x /usr/local/bin/reload-hydra-clients" USER ory ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] CMD ["/usr/local/bin/run-hydra"]