From 6fc86fea64b3d57ffad3b952aa28e409805e17d3 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Mon, 4 Mar 2024 10:42:48 -0500 Subject: [PATCH] switch back to kratos username --- Dockerfile.kratos | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.kratos b/Dockerfile.kratos index 93a23b8f9..4a05b55fe 100644 --- a/Dockerfile.kratos +++ b/Dockerfile.kratos @@ -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 @@ -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