Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker容器无法使用proxy-admin #44

Open
ai80233407 opened this issue Oct 26, 2021 · 1 comment
Open

docker容器无法使用proxy-admin #44

ai80233407 opened this issue Oct 26, 2021 · 1 comment

Comments

@ai80233407
Copy link

ai80233407 commented Oct 26, 2021

构建dockerfile
FROM alpine

ARG GOPROXY_ADMIN_FILE=proxy-admin_linux-amd64-v3.3

RUN mkdir /tmp/proxy
WORKDIR /tmp/proxy
COPY proxy-linux-amd64-v11.2.tar.gz /tmp/proxy/
COPY Shanghai /etc/localtime/
COPY proxy.crt /etc/ssl/certs/
COPY build.sh /tmp/proxy/
RUN sh build.sh

RUN mkdir /home/goproxy
WORKDIR /home/goproxy
COPY ${GOPROXY_ADMIN_FILE}.tar.gz /home/goproxy
RUN tar -zvxf /home/goproxy/${GOPROXY_ADMIN_FILE}.tar.gz >/dev/null && ./proxy-admin install

ENTRYPOINT ["/bin/sh"]

proxy-admin install 没什么反应,没有生成/etc/gpa,没有监听32080端口。
希望可以支持docker-proxy-admin ,感谢~

@snail007
Copy link
Owner

FROM debian not FROM alpine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants