Dokku deployment recipe
This commit is contained in:
@ -8,9 +8,12 @@ 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
|
||||
|
||||
VOLUME /home/ory/.container-lifecycle
|
||||
|
||||
RUN mkdir -p /home/ory && chown -R ory: /home/ory
|
||||
|
||||
USER ory
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]
|
||||
|
||||
CMD ["hydra", "serve", "all"]
|
22
misc/dokku/passwordless/Dockerfile
Normal file
22
misc/dokku/passwordless/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
FROM golang:1.13 AS build
|
||||
|
||||
ARG HTTP_PROXY=
|
||||
ARG HTTPS_PROXY=
|
||||
ARG http_proxy=
|
||||
ARG https_proxy=
|
||||
|
||||
RUN apt-get update && apt-get install -y build-essential git bash
|
||||
|
||||
COPY . /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN make ARCH_TARGETS=amd64 release
|
||||
|
||||
FROM busybox
|
||||
|
||||
COPY --from=build /src/release/server-linux-amd64 /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["bin/server", "-workdir", "/app", "-config", "server.yml"]
|
19
misc/dokku/sso/Dockerfile
Normal file
19
misc/dokku/sso/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM oryd/hydra:v1.4.2-alpine
|
||||
|
||||
USER root
|
||||
|
||||
COPY misc/containers/hydra/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||
RUN chmod a+x /usr/local/bin/docker-entrypoint
|
||||
|
||||
COPY misc/containers/hydra/first-run.sh /usr/local/bin/docker-first-run
|
||||
RUN chmod a+x /usr/local/bin/docker-first-run
|
||||
|
||||
VOLUME /home/ory/.container-lifecycle
|
||||
|
||||
RUN mkdir -p /home/ory && chown -R ory: /home/ory
|
||||
|
||||
USER ory
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]
|
||||
|
||||
CMD ["hydra", "serve", "all"]
|
Reference in New Issue
Block a user