- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
can't connect api after building docker image assume it can't expose GOTRUE_API_PORT.
- If the current behavior is a bug, please provide the steps to reproduce.
- What is the expected behavior?
it can expose GOTRUE_API_PORT
- Please mention your Go version, and operating system version.
1.13
Dockerfile
FROM golang:1.13-alpine as build
ENV GO111MODULE=on
ENV CGO_ENABLED=0
ENV GOOS=linux
RUN apk add --no-cache make git
WORKDIR /go/src/github.com/netlify/gotrue
COPY ./Makefile ./go.* ./
RUN make deps
COPY . /go/src/github.com/netlify/gotrue
RUN make build
FROM alpine:3.7
RUN adduser -D -u 1000 netlify
RUN apk add --no-cache ca-certificates
COPY --from=build /go/src/github.com/netlify/gotrue/gotrue /usr/local/bin/gotrue
COPY --from=build /go/src/github.com/netlify/gotrue/migrations /usr/local/etc/gotrue/migrations/
ENV GOTRUE_DB_MIGRATIONS_PATH /usr/local/etc/gotrue/migrations
USER netlify
CMD ["gotrue"]
- Do you want to request a feature or report a bug? bug - What is the current behavior? can't connect api after building docker image assume it can't expose GOTRUE_API_PORT.
- If the current behavior is a bug, please provide the steps to reproduce.
- What is the expected behavior? it can expose GOTRUE_API_PORT
- Please mention your Go version, and operating system version. 1.13
Dockerfile
ENV file