fix proto import in docker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
buenosairesam
2026-01-22 18:45:46 -03:00
parent f854d6d399
commit 9ddcb68131
4 changed files with 9 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& curl -fsSL https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.24/grpc_health_probe-linux-amd64 \
-o /bin/grpc_health_probe \
-o /bin/grpc_health_probe \
&& chmod +x /bin/grpc_health_probe \
&& rm -rf /var/lib/apt/lists/*
@@ -22,7 +22,8 @@ RUN python -m grpc_tools.protoc \
-I/app/proto \
--python_out=/app/shared \
--grpc_python_out=/app/shared \
/app/proto/metrics.proto
/app/proto/metrics.proto \
&& sed -i 's/^import metrics_pb2/from shared import metrics_pb2/' /app/shared/metrics_pb2_grpc.py
COPY services/aggregator /app/services/aggregator