fix: allow gotrue service to work without postgres user
This commit is contained in:
parent
f74b6a37bd
commit
e767f36a2f
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
- name: Build and Push GoTrue
|
- name: Build and Push GoTrue
|
||||||
run: |
|
run: |
|
||||||
export TAG=${GITHUB_REF#refs/*/}
|
export TAG=${GITHUB_REF#refs/*/}
|
||||||
docker buildx build --platform linux/amd64,linux/arm64 -t appflowyinc/gotrue:${TAG} -t appflowyinc/gotrue:latest -f docker/gotrue.Dockerfile --push .
|
docker buildx build --platform linux/amd64,linux/arm64 -t appflowyinc/gotrue:${TAG} -t appflowyinc/gotrue:latest -f gotrue/Dockerfile --push docker/gotrue
|
||||||
|
|
||||||
appflowy_cloud_image:
|
appflowy_cloud_image:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,8 @@ services:
|
||||||
gotrue:
|
gotrue:
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
build:
|
build:
|
||||||
context: .
|
context: docker/gotrue
|
||||||
dockerfile: docker/gotrue.Dockerfile
|
dockerfile: docker/gotrue/Dockerfile
|
||||||
image: appflowyinc/gotrue:${GOTRUE_VERSION:-latest}
|
image: appflowyinc/gotrue:${GOTRUE_VERSION:-latest}
|
||||||
environment:
|
environment:
|
||||||
# There are a lot of options to configure GoTrue. You can reference the example config:
|
# There are a lot of options to configure GoTrue. You can reference the example config:
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,10 @@ FROM golang as base
|
||||||
WORKDIR /go/src/supabase
|
WORKDIR /go/src/supabase
|
||||||
RUN git clone https://github.com/supabase/auth.git --depth 1 --branch v2.159.1
|
RUN git clone https://github.com/supabase/auth.git --depth 1 --branch v2.159.1
|
||||||
WORKDIR /go/src/supabase/auth
|
WORKDIR /go/src/supabase/auth
|
||||||
COPY docker/gotrue.patch .
|
COPY patch/mfa_enabled.patch .
|
||||||
RUN git apply gotrue.patch
|
RUN git apply mfa_enabled.patch
|
||||||
RUN CGO_ENABLED=0 go build -o /auth .
|
RUN CGO_ENABLED=0 go build -o /auth .
|
||||||
|
RUN rm /go/src/supabase/auth/migrations/20240612123726_enable_rls_update_grants.up.sql
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo
|
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
Loading…
Reference in New Issue