fix: gotrue docker build
This commit is contained in:
parent
3f59c650f4
commit
32a473726d
|
|
@ -1,10 +1,10 @@
|
||||||
FROM golang as base
|
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/gotrue
|
WORKDIR /go/src/supabase/auth
|
||||||
COPY docker/gotrue.patch .
|
COPY docker/gotrue.patch .
|
||||||
RUN git apply gotrue.patch
|
RUN git apply gotrue.patch
|
||||||
RUN CGO_ENABLED=0 go build -o /gotrue .
|
RUN CGO_ENABLED=0 go build -o /auth .
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo
|
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
|
|
@ -12,7 +12,7 @@ COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
COPY --from=base /etc/passwd /etc/passwd
|
COPY --from=base /etc/passwd /etc/passwd
|
||||||
COPY --from=base /etc/group /etc/group
|
COPY --from=base /etc/group /etc/group
|
||||||
|
|
||||||
COPY --from=base /gotrue .
|
COPY --from=base /auth .
|
||||||
COPY --from=base /go/src/supabase/gotrue/migrations ./migrations
|
COPY --from=base /go/src/supabase/auth/migrations ./migrations
|
||||||
|
|
||||||
CMD ["./gotrue"]
|
CMD ["./auth"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue