LinkinStars commented on issue #915: URL: https://github.com/apache/incubator-answer/issues/915#issuecomment-2068638713
@micol92 I make a PR to fix your compile error. https://github.com/micol92/jw-incubator-answer-plugins/pull/1 After merge it, add new tag and build with new tag version. ```bash $ git pull $ git tag connector-basic/v1.2.7 $ git push origin connector-basic/v1.2.7 ``` ```dockerfile FROM apache/answer as answer-builder FROM golang:1.19-alpine AS golang-builder COPY --from=answer-builder /usr/bin/answer /usr/bin/answer RUN apk --no-cache add \ build-base git bash nodejs npm go && \ npm install -g [email protected] RUN answer build \ --with github.com/micol92/jw-incubator-answer-plugins/[email protected] \ --output /usr/bin/new_answer FROM alpine LABEL maintainer="[email protected]" ARG TIMEZONE ENV TIMEZONE=${TIMEZONE:-"Asia/Shanghai"} RUN apk update \ && apk --no-cache add \ bash \ ca-certificates \ curl \ dumb-init \ gettext \ openssh \ sqlite \ gnupg \ tzdata \ && ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \ && echo "${TIMEZONE}" > /etc/timezone COPY --from=golang-builder /usr/bin/new_answer /usr/bin/answer COPY --from=answer-builder /data /data COPY --from=answer-builder /entrypoint.sh /entrypoint.sh RUN chmod 755 /entrypoint.sh VOLUME /data EXPOSE 80 ENTRYPOINT ["/entrypoint.sh"] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
