Merge pull request #220 from AppFlowy-IO/gotrue_build

feat: gotrue build arch and os agnostic
This commit is contained in:
Zack 2023-12-16 20:45:46 -08:00 committed by GitHub
commit 6d3b01193d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ RUN git clone https://github.com/supabase/gotrue.git --depth 1 --branch v2.117.0
WORKDIR /go/src/supabase/gotrue
COPY docker/gotrue.patch .
RUN git apply gotrue.patch
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /gotrue .
RUN CGO_ENABLED=0 go build -o /gotrue .
FROM scratch
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo