All checks were successful
CI / changes (push) Successful in 19s
CI / test (push) Successful in 24s
CI / build-ai-gateway (push) Successful in 1m6s
CI / build-ha-gateway (push) Successful in 1m3s
CI / build-discord-bot (push) Successful in 1m4s
CI / build-alexa-bridge (push) Successful in 1m15s
CI / build-tts-gateway (push) Successful in 1m5s
CI / build-tts-sidecar (push) Has been skipped
CI / build-tts-model (push) Has been skipped
- Implemented SetTemperature in ClimateService for setting an absolute target temperature. - Updated ClimateServiceClient and ClimateServiceServer interfaces to include SetTemperature. - Added corresponding handler and tests for SetTemperature in ClimateGRPC. - Modified ClimateApp to handle SetTemperature requests without clamping. - Updated climate.proto to define SetTemperatureRequest message. - Adjusted Dockerfiles to include alexa-bridge dependencies.
36 lines
1.1 KiB
Docker
36 lines
1.1 KiB
Docker
FROM golang:1.26-alpine AS builder
|
|
WORKDIR /workspace
|
|
|
|
COPY go.work go.work.sum ./
|
|
|
|
# Manifests only, copied first, so `go mod download` gets its own cache layer
|
|
# invalidated only by dependency changes - not by every source edit below.
|
|
COPY gen/go.mod gen/go.sum ./gen/
|
|
COPY ha-gateway/go.mod ha-gateway/go.sum ./ha-gateway/
|
|
COPY ai-gateway/go.mod ai-gateway/go.sum ./ai-gateway/
|
|
COPY discord-bot/go.mod discord-bot/go.sum ./discord-bot/
|
|
COPY tts-gateway/go.mod tts-gateway/go.sum ./tts-gateway/
|
|
COPY alexa-bridge/go.mod alexa-bridge/go.sum ./alexa-bridge/
|
|
|
|
WORKDIR /workspace/alexa-bridge
|
|
RUN go mod download
|
|
|
|
WORKDIR /workspace
|
|
COPY gen/ ./gen/
|
|
COPY ha-gateway/ ./ha-gateway/
|
|
COPY ai-gateway/ ./ai-gateway/
|
|
COPY discord-bot/ ./discord-bot/
|
|
COPY tts-gateway/ ./tts-gateway/
|
|
COPY alexa-bridge/ ./alexa-bridge/
|
|
|
|
WORKDIR /workspace/alexa-bridge
|
|
ARG VERSION=dev
|
|
RUN CGO_ENABLED=0 GOOS=linux go build \
|
|
-ldflags="-s -w -X main.version=${VERSION}" \
|
|
-o /alexa-bridge ./cmd/bridge
|
|
|
|
FROM gcr.io/distroless/static:nonroot
|
|
COPY --from=builder /alexa-bridge /alexa-bridge
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/alexa-bridge"]
|