move api/server to api/edge/bff
This commit is contained in:
@@ -17,7 +17,7 @@ RUN apk add --no-cache bash git build-base protoc protobuf-dev \
|
||||
&& go install google.golang.org/protobuf/cmd/protoc-gen-go@latest \
|
||||
&& go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest \
|
||||
&& bash ci/scripts/proto/generate.sh
|
||||
WORKDIR /src/api/server
|
||||
WORKDIR /src/api/edge/bff
|
||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||
--mount=type=cache,target=/go/pkg/mod \
|
||||
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
@@ -33,9 +33,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||
FROM alpine:latest AS runtime
|
||||
RUN apk add --no-cache ca-certificates tzdata wget
|
||||
WORKDIR /app
|
||||
COPY api/server/config.yml /app/config.yml
|
||||
COPY api/server/assets /app/assets
|
||||
COPY api/server/env /app/env
|
||||
COPY api/edge/bff/config.yml /app/config.yml
|
||||
COPY api/edge/bff/assets /app/assets
|
||||
COPY api/edge/bff/env /app/env
|
||||
COPY api/pkg/auth/internal/casbin/models/auth.conf /app/env/permissions_model.conf
|
||||
COPY --from=build /out/bff /app/bff
|
||||
EXPOSE 8082
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Compose v2 - BFF (api/server)
|
||||
# Compose v2 - BFF (api/edge/bff)
|
||||
|
||||
x-common-env: &common-env
|
||||
env_file:
|
||||
|
||||
Reference in New Issue
Block a user