Skip to content

Commit 68b59e3

Browse files
committed
style: use multiline shell for large build commands
1 parent 2782351 commit 68b59e3

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

debian.dockerfile

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
FROM debian:trixie-slim@sha256:c2880112cc5c61e1200c26f106e4123627b49726375eb5846313da9cca117337 AS builder
22
ARG VERSION
33

4-
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
5-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
4+
RUN <<"EOF"
5+
set -eux
6+
export DEBIAN_FRONTEND=noninteractive
7+
apt-get -y update
8+
apt-get install -y --no-install-recommends \
69
automake \
710
build-essential \
811
ca-certificates \
912
git \
1013
libtool \
1114
make \
1215
pkg-config \
13-
# Icecast
1416
libcurl4-openssl-dev \
1517
libogg-dev \
1618
libspeex-dev \
1719
libssl-dev \
1820
libtheora-dev \
1921
libvorbis-dev \
2022
libxml2-dev \
21-
libxslt1-dev \
22-
&& rm -rf /var/lib/apt/lists/*
23+
libxslt1-dev
24+
rm -rf /var/lib/apt/lists/*
25+
EOF
2326

2427
WORKDIR /build
2528
ADD icecast-$VERSION.tar.gz .
@@ -36,8 +39,11 @@ RUN make install DESTDIR=/build/output
3639

3740
FROM debian:trixie-slim@sha256:c2880112cc5c61e1200c26f106e4123627b49726375eb5846313da9cca117337
3841

39-
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
40-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
42+
RUN <<"EOF"
43+
set -eux
44+
export DEBIAN_FRONTEND=noninteractive
45+
apt-get -y update
46+
apt-get install -y --no-install-recommends \
4147
ca-certificates \
4248
media-types \
4349
libcurl4 \
@@ -47,12 +53,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
4753
libtheora0 \
4854
libvorbis0a \
4955
libxml2 \
50-
libxslt1.1 \
51-
&& rm -rf \
52-
/var/cache/* \
53-
/var/lib/apt/lists/* \
54-
/var/log/apt/* \
55-
/var/log/dpkg.log
56+
libxslt1.1
57+
rm -rf /var/lib/apt/lists/*
58+
EOF
5659

5760
ENV USER=icecast
5861

0 commit comments

Comments
 (0)