Skip to content

Commit ee74d52

Browse files
J0joel@joellee.org
and
joel@joellee.org
authored
fix: Change Dockerfile.dev target from netlify to Supabase (#973)
Further renaming from netlify -> Supabase. Main change here is on the dev set up - if one cleans out existing image + volumes + cache and runs `make dev` the build step will error with `"Failed to load configuration: open .env.docker: no such file or directory` as Docker will look in `/go/src/github.com/netlify/gotrue` instead of `/go/src/github.com/supabase/gotrue` --------- Co-authored-by: joel@joellee.org <joel@joellee.org>
1 parent 55544e2 commit ee74d52

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19-alpine as build
1+
FROM golang:1.20-alpine as build
22
ENV GO111MODULE=on
33
ENV CGO_ENABLED=0
44
ENV GOOS=linux
@@ -16,13 +16,13 @@ COPY . /go/src/github.com/supabase/gotrue
1616
RUN make build
1717

1818
FROM alpine:3.17
19-
RUN adduser -D -u 1000 netlify
19+
RUN adduser -D -u 1000 supabase
2020

2121
RUN apk add --no-cache ca-certificates
2222
COPY --from=build /go/src/github.com/supabase/gotrue/gotrue /usr/local/bin/gotrue
2323
COPY --from=build /go/src/github.com/supabase/gotrue/migrations /usr/local/etc/gotrue/migrations/
2424

2525
ENV GOTRUE_DB_MIGRATIONS_PATH /usr/local/etc/gotrue/migrations
2626

27-
USER netlify
27+
USER supabase
2828
CMD ["gotrue"]

Dockerfile.dev

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.19-alpine
1+
FROM golang:1.20-alpine
22
ENV GO111MODULE=on
33
ENV CGO_ENABLED=0
44
ENV GOOS=linux
55

66
RUN apk add --no-cache make git bash
77

8-
WORKDIR /go/src/github.com/netlify/gotrue
8+
WORKDIR /go/src/github.com/supabase/gotrue
99

1010
# Pulling dependencies
1111
COPY ./Makefile ./go.* ./

app.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Gotrue",
33
"description": "",
44
"website": "https://www.gotrueapi.org",
5-
"repository": "https://github.com/netlify/gotrue",
5+
"repository": "https://github.com/supabase/gotrue",
66
"env": {
77
"DATABASE_URL": {},
88
"GOTRUE_DB_DRIVER": {

netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
[[redirects]]
66
from = "/*"
7-
to = "https://github.com/netlify/gotrue"
7+
to = "https://github.com/supabase/gotrue"
88
status = 302
99
force = true

0 commit comments

Comments
 (0)