Fix dockerfile linter warnings (#2291)
This commit is contained in:
@ -5,8 +5,11 @@ FROM ubuntu:20.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# hadolint ignore=DL3008
|
||||
RUN apt-get update && apt-get install -y \
|
||||
cmake build-essential git wget python3.10 python3-pip
|
||||
cmake build-essential git wget python3.10 python3-pip --no-install-recommends \
|
||||
&& apt-get clean -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG WASI_SDK_VER=19
|
||||
RUN wget -c --progress=dot:giga https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER}/wasi-sdk-${WASI_SDK_VER}.0-linux.tar.gz -P /opt \
|
||||
@ -18,6 +21,6 @@ WORKDIR /wasi-nn/test
|
||||
|
||||
COPY core/iwasm/libraries/wasi-nn/test/requirements.txt .
|
||||
|
||||
RUN pip3 install -r requirements.txt && rm requirements.txt
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt && rm requirements.txt
|
||||
|
||||
ENTRYPOINT [ "bash", "./build.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user