提取一个不可能的恶意客户端文件ni docker



我正试图在docker中为wildfly添加keyCloak子系统,如下所示,但文件无法解压缩,这给了我一个错误。我尝试过tar变体,但也没有成功。从浏览器转到curl中的url下载文件,它可以在我的本地机器上提取(ubuntu 20.4(。我是不是在Dockerfile里遗漏了什么?

End-of-central-directory signature not found.  Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.  In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of keycloak-oidc-wildfly-adapter- 
15.0.2.zip or
keycloak-oidc-wildfly-adapter-15.0.2.zip.zip, and cannot find keycloak-oidc- 
wildfly-adapter-15.0.2.zip.ZIP, period.

Dockerfile是:

FROM jboss/wildfly:25.0.0.Final
ENV KEYCLOAK_VERSION 15.0.2
ENV WILDFLY_HOME /opt/jboss/wildfly
WORKDIR $WILDFLY_HOME
RUN curl -f -O https://github.com/keycloak/keycloak/releases/download/15.0.2/keycloak-oidc-wildfly-adapter-15.0.2.zip 
&& unzip keycloak-oidc-wildfly-adapter-15.0.2.zip -d .
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]
EXPOSE 8080
EXPOSE 9990

我意识到wget工作得很好。我把旋度选项改成了-LO,它起作用了。这是一个多部分的文件。

最新更新