@@ -17,12 +17,11 @@ ARG HTTPS_PROXY
17
17
ARG NO_PROXY
18
18
ARG SPDK_VERSION
19
19
20
- RUN dnf install -y git
20
+ RUN dnf install -y git && dnf clean all
21
21
COPY spdk/ /spdk
22
22
RUN mkdir /spdk-rpm
23
23
COPY core/build_base/pre-install /install
24
- RUN chmod +x /install
25
- RUN /install
24
+ RUN chmod +x /install && /install
26
25
27
26
# ###############################################################################
28
27
# spdk
@@ -45,13 +44,12 @@ RUN mkdir /spdk-rpm
45
44
COPY --from=base /spdk-rpm/*.rpm /spdk-rpm/
46
45
COPY --from=base /spdk-rpm/fio /spdk-rpm/
47
46
48
- RUN dnf install -y python python3-pip
49
- RUN python - m pip install grpcio grpcio-tools
47
+ # hadolint ignore=DL3013
48
+ RUN dnf install -y python python3-pip && dnf clean all && python - m pip install --no-cache-dir grpcio grpcio-tools
50
49
51
50
# Wrap up the image
52
51
COPY core/build_base/post-install /install
53
- RUN chmod +x /install
54
- RUN /install
52
+ RUN chmod +x /install && /install
55
53
56
54
57
55
# ###############################################################################
@@ -67,7 +65,7 @@ ARG HTTP_PROXY
67
65
ARG HTTPS_PROXY
68
66
ARG NO_PROXY
69
67
70
- RUN dnf install -y socat
68
+ RUN dnf install -y socat && dnf clean all
71
69
COPY core/spdk-app/init /init
72
70
73
71
ENTRYPOINT ["/init" ]
@@ -99,8 +97,8 @@ ARG HTTP_PROXY
99
97
ARG HTTPS_PROXY
100
98
ARG NO_PROXY
101
99
102
- RUN dnf install -y socat
103
- RUN pip install pyyaml
100
+ # hadolint ignore=DL3013
101
+ RUN dnf install -y socat && dnf clean all && pip install --no-cache-dir pyyaml
104
102
105
103
COPY core/ipu-storage-container/init /init
106
104
COPY --from=spdk-app /init /init_spdk
@@ -121,8 +119,8 @@ ARG HTTP_PROXY
121
119
ARG HTTPS_PROXY
122
120
ARG NO_PROXY
123
121
124
- RUN dnf install -y python fio python3-pip
125
- RUN python - m pip install grpcio grpcio-tools grpcio-reflection
122
+ # hadolint ignore=DL3013
123
+ RUN dnf install -y python fio python3-pip && dnf clean all && python - m pip install --no-cache-dir grpcio grpcio-tools grpcio-reflection
126
124
127
125
COPY core/host-target/init /init
128
126
COPY core/host-target/*.py /
@@ -145,8 +143,8 @@ ARG HTTP_PROXY
145
143
ARG HTTPS_PROXY
146
144
ARG NO_PROXY
147
145
148
- RUN dnf install -y python fio python3-pip
149
- RUN python - m pip install grpcio-reflection pyfakefs
146
+ # hadolint ignore=DL3013
147
+ RUN dnf install -y python fio python3-pip && dnf clean all && python - m pip install --no-cache-dir grpcio-reflection pyfakefs
150
148
151
149
COPY tests/ut/host-target /host-target/tests
152
150
COPY --from=host-target fio_runner.py /host-target/src/
0 commit comments