wuchunfu / IpProxyPool

Golang 实现的 IP 代理池, 涉及到的技术点: go gorm proxy proxypool ip crawler 爬虫 mysql viper cobra
Apache License 2.0
104 stars 32 forks source link

docker 构建失败 #51

Open killdayu opened 3 years ago

killdayu commented 3 years ago

=> ERROR [builder 5/6] RUN xz -d -c /usr/local/upx-3.96-amd64_linux.tar.xz | tar -xOf - upx-3.96-amd64_linux/upx > /bin/upx && chmod a+x /bin/upx 0.4s

[builder 5/6] RUN xz -d -c /usr/local/upx-3.96-amd64_linux.tar.xz | tar -xOf - upx-3.96-amd64_linux/upx > /bin/upx && chmod a+x /bin/upx:

14 0.418 /bin/sh: xz: not found

14 0.418 tar: short read

14 0.418 tar: upx-3.96-amd64_linux/upx: not found in archive


executor failed running [/bin/sh -c xz -d -c /usr/local/upx-3.96-amd64_linux.tar.xz | tar -xOf - upx-3.96-amd64_linux/upx > /bin/upx && chmod a+x /bin/upx]: exit code: 1 ERROR: Service 'proxypool' failed to build : Build failed

wuchunfu commented 3 years ago

我这边构建是没问题的,是不是因为网络原因啊,有可能是 upx 因为网络原因导致的

tigerWLSGit commented 1 year ago

=> ERROR [builder 5/6] RUN xz -d -c /usr/local/upx-3.96-amd64_linux.tar.xz | tar -xOf - upx-3.96-amd64_linux/upx > /bin/upx && chmod a+x /bin/upx 0.4s

[builder 5/6] RUN xz -d -c /usr/local/upx-3.96-amd64_linux.tar.xz | tar -xOf - upx-3.96-amd64_linux/upx > /bin/upx && chmod a+x /bin/upx:

14 0.418 /bin/sh: xz: not found

14 0.418 tar: short read

14 0.418 tar: upx-3.96-amd64_linux/upx: not found in archive

executor failed running [/bin/sh -c xz -d -c /usr/local/upx-3.96-amd64_linux.tar.xz | tar -xOf - upx-3.96-amd64_linux/upx > /bin/upx && chmod a+x /bin/upx]: exit code: 1 ERROR: Service 'proxypool' failed to build : Build failed

这个镜像没有xz和tar,需要安装。

方式:在Dockerfile文件中RUN xz -d -c /usr/local/upx-3.96-amd64_linux.tar.xz之前一行,插入

RUN apk add xz tar