2020-05-20 11:13:14 +02:00
|
|
|
FROM oryd/hydra:v1.4.2-alpine
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
|
|
|
RUN chmod a+x /usr/local/bin/docker-entrypoint
|
|
|
|
|
|
|
|
COPY first-run.sh /usr/local/bin/docker-first-run
|
|
|
|
RUN chmod a+x /usr/local/bin/docker-first-run
|
|
|
|
|
|
|
|
RUN mkdir -p /home/ory && chown -R ory: /home/ory
|
|
|
|
|
|
|
|
USER ory
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]
|
2020-05-20 14:07:58 +02:00
|
|
|
|
2020-05-20 11:13:14 +02:00
|
|
|
CMD ["hydra", "serve", "all"]
|