What is the best approach for building a Docker image with plugins for running on the server?

Viewed 121

I need to run a service on the server, but I need to build a Docker image with the plugin version. So I'm not sure whether I should build it locally now or directly on the server, because it's always very slow on the server, takes a long time, and often gets stuck during the process.

image.png

18/43 800s

1 Answers

You can build the docker image with the plugin locally or directly on the server.

Maybe because of the slow network in your country/region, you may need to add some mirrors.

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories

RUN go env -w GOPROXY=https://goproxy.cn,direct

Even if for npm repositories.

FYI: https://github.com/apache/incubator-answer-plugins/issues/92#issuecomment-2008621877

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2024 Apache Answer Meta.