# 使用更小的基础镜像运行 FROM alpine:latest WORKDIR /app COPY order-producer . ENV KAFKA_BROKERS=localhost:9092 ENTRYPOINT ["./order-producer"]