Skip to content

Commit

Permalink
switch back to kratos username
Browse files Browse the repository at this point in the history
  • Loading branch information
jertel committed Mar 4, 2024
1 parent d9e878b commit 6fc86fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.kratos
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ ARG UID=928
ARG GID=928
ARG OWNER=ory

RUN groupadd --system ory; \
useradd --system ory --no-create-home -g ory
RUN groupadd --system kratos --gid "$GID" ; \
useradd --system kratos --no-create-home -g kratos --uid "$UID"

RUN echo "#!/bin/sh" > /start-kratos.sh
RUN echo "kratos -c /kratos-conf/kratos.yaml migrate sql -e --yes >> /kratos-log/kratos-migrate.log 2>&1" >> /start-kratos.sh
Expand All @@ -52,7 +52,7 @@ RUN chmod a+x /start-kratos.sh

COPY --from=builder /go/src/github.com/$OWNER/kratos/kratos /usr/bin/kratos
COPY --from=builder /go/src/github.com/$OWNER/kratos/.schema /.schema
USER ory
USER kratos


EXPOSE 4433
Expand Down

0 comments on commit 6fc86fe

Please sign in to comment.