feat(perl-client): 新增 Perl 客户端 SDK 及 demo,各客户端版本统一为 1.0.3

This commit is contained in:
2026-07-07 21:11:04 +08:00
parent a70d378b91
commit 1f6da33371
15 changed files with 550 additions and 5 deletions
+26
View File
@@ -0,0 +1,26 @@
# Build stage
FROM perl:5.40 AS build
WORKDIR /src
# Copy client library
COPY kenaito-conf-perl-client/ ./kenaito-conf-perl-client/
# Install client dependencies
WORKDIR /src/kenaito-conf-perl-client
RUN cpanm --notest HTTP::Tiny JSON::PP
# Copy demo project
WORKDIR /src
COPY kenaito-conf-perl-client-demo/ ./kenaito-conf-perl-client-demo/
# Runtime stage
FROM perl:5.40-slim
WORKDIR /app
COPY --from=build /src/kenaito-conf-perl-client/lib /app/kenaito-conf-perl-client/lib
COPY --from=build /src/kenaito-conf-perl-client-demo/app.pl .
ENV PERL5LIB=/app/kenaito-conf-perl-client/lib
ENTRYPOINT ["perl", "app.pl"]