LinkinStars commented on issue #1420: URL: https://github.com/apache/answer/issues/1420#issuecomment-3491781433
@leomeinel You can try to set `ANSWER_MODULE=github.com/apache/[email protected]` ENV. Golang tags may encounter caching delays; specifying a version explicitly allows fetching the designated version. Below is my `Dockerfile`, which has built successfully. FYI, in answer, plugins typically do not conflict during packaging. ```Dockerfile FROM apache/answer:1.7.0 as answer-builder FROM golang:1.23.4-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_MODULE=github.com/apache/[email protected] answer build \ --with github.com/apache/answer-plugins/cache-redis@latest \ --with github.com/apache/answer-plugins/captcha-basic@latest \ --with github.com/apache/answer-plugins/connector-basic@latest \ --with github.com/apache/answer-plugins/editor-chart@latest \ --with github.com/apache/answer-plugins/editor-formula@latest \ --with github.com/apache/answer-plugins/embed-basic@latest \ --with github.com/apache/answer-plugins/quick-links@latest \ --with github.com/apache/answer-plugins/render-markdown-codehighlight@latest \ --with github.com/apache/answer-plugins/reviewer-basic@latest \ --output /usr/bin/new_answer FROM alpine:latest 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
