mirror of
https://github.com/hassio-addons/addon-ubuntu-base.git
synced 2025-05-07 12:21:24 +00:00
👕 Fixes hadolint warnings
This commit is contained in:
parent
9748a939e0
commit
6158baa8ab
1 changed files with 11 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
|||
ARG BUILD_FROM=ubuntu:xenial
|
||||
# hadolint ignore=DL3006
|
||||
FROM ${BUILD_FROM}
|
||||
|
||||
# Environment variables
|
||||
|
@ -20,12 +21,12 @@ RUN \
|
|||
apt-get update \
|
||||
\
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
bash \
|
||||
ca-certificates \
|
||||
curl \
|
||||
udev \
|
||||
jq \
|
||||
tzdata \
|
||||
bash=4.3-14ubuntu1.2 \
|
||||
ca-certificates=20170717~16.04.1 \
|
||||
curl=7.47.0-1ubuntu2.7 \
|
||||
udev=229-4ubuntu21.2 \
|
||||
jq=1.5+dfsg-1 \
|
||||
tzdata=2017c-0ubuntu0.16.04 \
|
||||
\
|
||||
&& if [ "${BUILD_ARCH}" = "i386" ]; then S6_ARCH="x86"; else S6_ARCH="${BUILD_ARCH}"; fi \
|
||||
\
|
||||
|
@ -51,9 +52,10 @@ RUN \
|
|||
rm -f /usr/bin/qemu-aarch64-static; \
|
||||
fi \
|
||||
\
|
||||
&& rm -f -r \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/*
|
||||
&& rm -f -r /tmp/* \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/* \
|
||||
&& rm -rf /var/{cache,log}/*
|
||||
|
||||
# Entrypoint & CMD
|
||||
ENTRYPOINT [ "/init" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue