使用Alpine linux作为基本映像创建azure cli的docker映像时出错

使用Alpine linux作为基本映像创建azure cli的docker映像时出错,azure,docker,command-line-interface,alpine,Azure,Docker,Command Line Interface,Alpine,我正在尝试创建一个安装了azure cli的Alpine docker映像 我的docker文件如下: FROM alpine:3.4 RUN set -x \ && apk update \ && apk add --no-cache bash \ python \ curl \

我正在尝试创建一个安装了azure cli的Alpine docker映像

我的docker文件如下:

FROM alpine:3.4
RUN set -x \
        && apk update \
        && apk add --no-cache bash \
                              python \
                              curl \
                              coreutils \ 
                              openssl \
                              jq \
                              py-pip \
        && apk add --virtual=build \
                             gcc \
                             libffi-dev \
                             musl-dev \
                             libxml2-dev \
                             libxslt-dev \    
                             linux-headers \   
                             gcc \    
                             libffi \                        
                             openssl-dev \
                             python-dev \    
        && pip install azure-cli \    
        && apk del --purge build
运行docker build命令时,出现以下错误:

    config.status: creating src/libsodium/include/sodium/version.h
    config.status: creating test/default/Makefile
    config.status: creating test/Makefile
    config.status: executing depfiles commands
    config.status: executing libtool commands
    error: [Errno 2] No such file or directory

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ayCiZW/pynacl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3Yq3c3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ayCiZW/pynacl/
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

我做错了什么?我是否缺少任何依赖项?

您可以将基本docker映像用于azure cli并添加到其中。它建在阿尔卑斯山上。请参阅:

您可以将基本docker映像用于azure cli并添加到其中。它建在阿尔卑斯山上。请参阅:

对于有兴趣在上述问题中重复使用docker文件的任何人,您需要安装
make
,使其工作。

对于有兴趣在上述问题中重复使用docker文件的任何人,您需要安装
make
,使其工作