You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2024/04/11 09:00:04 UTC

(incubator-answer-website) branch docs/plugin created (now f5d96f38)

This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a change to branch docs/plugin
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git


      at f5d96f38 docs(plugin): update plugin dockerfile

This branch includes the following new commits:

     new f5d96f38 docs(plugin): update plugin dockerfile

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-answer-website) 01/01: docs(plugin): update plugin dockerfile

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch docs/plugin
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git

commit f5d96f387feea1abbb65e88c2660f07a43db408a
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Thu Apr 11 16:30:55 2024 +0800

    docs(plugin): update plugin dockerfile
---
 docs/guides/plugins.md | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/guides/plugins.md b/docs/guides/plugins.md
index 113a45bf..ffdccbd9 100644
--- a/docs/guides/plugins.md
+++ b/docs/guides/plugins.md
@@ -90,6 +90,10 @@ $ ./new_answer plugin
 ```dockerfile  title="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 pnpm
@@ -120,7 +124,7 @@ RUN apk update \
     && ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
     && echo "${TIMEZONE}" > /etc/timezone
 
-COPY --from=answer-builder /usr/bin/new_answer /usr/bin/answer
+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