Skip to content

Commit

Permalink
Merge pull request #363 from Security-Onion-Solutions/jertel/krup
Browse files Browse the repository at this point in the history
Jertel/krup
  • Loading branch information
jertel authored Mar 4, 2024
2 parents 3d5cd01 + 6fc86fe commit 7088059
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile.kratos
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,16 @@ RUN go mod download
RUN go build -tags sqlite -ldflags="-X 'github.com/ory/kratos/driver/config.Version=${VERSION}' -X 'github.com/ory/kratos/driver/config.Date=$(date -I)' -X 'github.com/ory/kratos/driver/config.Commit=$(git rev-parse --short HEAD)'"


FROM ghcr.io/security-onion-solutions/alpine:latest
FROM ghcr.io/security-onion-solutions/ubuntu:23.04

ENV DSN=sqlite:///kratos-data/db.sqlite?_fk=true

ARG UID=928
ARG GID=928
ARG OWNER=ory

RUN addgroup --gid "$GID" -S kratos; \
adduser -u "$UID" -S kratos -G kratos -D -H -s /bin/nologin
RUN apk add -U --no-cache ca-certificates

RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
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 Down

0 comments on commit 7088059

Please sign in to comment.