mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-17 21:37:35 +00:00
9a374f9c5c
* refactor(local): docker compose * fix(compose): disable logging in gateway * docs: guide for local development * docs(local): quickstart * docs: resources * use docker-compose dns * Apply suggestions from code review Co-authored-by: Florian Forster <florian@caos.ch> Co-authored-by: Elio Bischof <eliobischof@gmail.com> Co-authored-by: Florian Forster <florian@caos.ch>
33 lines
899 B
Docker
33 lines
899 B
Docker
# copy from https://raw.githubusercontent.com/grpc/grpc-web/master/net/grpc/gateway/docker/grpcwebproxy/Dockerfile
|
|
|
|
FROM golang:1.17-alpine3.13
|
|
|
|
RUN apk add --no-cache curl git ca-certificates && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG VERSION=0.14.0
|
|
|
|
WORKDIR /tmp
|
|
|
|
RUN curl -sS https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
|
RUN wget https://github.com/improbable-eng/grpc-web/archive/v$VERSION.tar.gz
|
|
|
|
WORKDIR /go/src/github.com/improbable-eng/
|
|
|
|
RUN tar -zxf /tmp/v$VERSION.tar.gz -C .
|
|
RUN mv grpc-web-$VERSION grpc-web
|
|
|
|
WORKDIR /go/src/github.com/improbable-eng/grpc-web
|
|
|
|
RUN dep ensure && \
|
|
go env -w GO111MODULE=auto && \
|
|
go install ./go/grpcwebproxy
|
|
|
|
ENV BKD_HOST=backend-run
|
|
ENV BKD_PORT=50001
|
|
|
|
ENTRYPOINT [ "/bin/sh", "-c", "exec /go/bin/grpcwebproxy \
|
|
--backend_addr=${BKD_HOST}:${BKD_PORT} \
|
|
--run_tls_server=false \
|
|
--use_websockets \
|
|
--allow_all_origins " ] |