mirror of
https://github.com/hassio-addons/addon-ubuntu-base.git
synced 2025-05-07 12:21:24 +00:00
👕 Fixes Hadolint warning
This commit is contained in:
parent
d9a8f90484
commit
5627e15db0
1 changed files with 3 additions and 10 deletions
|
@ -15,6 +15,9 @@ ENV \
|
|||
# Copy root filesystem
|
||||
COPY rootfs /
|
||||
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
# Install base system
|
||||
ARG BUILD_ARCH=amd64
|
||||
RUN \
|
||||
|
@ -34,16 +37,6 @@ RUN \
|
|||
&& mkdir -p /etc/fix-attrs.d \
|
||||
&& mkdir -p /etc/services.d \
|
||||
\
|
||||
&& \
|
||||
if [ "${BUILD_ARCH}" != "armhf" ]; then \
|
||||
rm -f /usr/bin/qemu-arm-static; \
|
||||
fi \
|
||||
\
|
||||
&& \
|
||||
if [ "${BUILD_ARCH}" != "aarch64" ]; then \
|
||||
rm -f /usr/bin/qemu-aarch64-static; \
|
||||
fi \
|
||||
\
|
||||
&& rm -f -r /tmp/* \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/* \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue