Skip to content

Commit b0ee31d

Browse files
committed
Replace apt-get with apt and improve
Replace apt-get with apt. And, clean up any cached package lists afterwards.
1 parent a608827 commit b0ee31d

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

Dockerfile

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
FROM gcc:bullseye as build
22

3-
# Install dependencies
4-
RUN apt-get update && apt-get -y install \
5-
build-essential \
6-
libraptor2-dev \
7-
libserd-dev \
8-
autoconf \
9-
libtool \
10-
liblzma-dev \
11-
liblzo2-dev \
12-
zlib1g-dev
3+
# Install build dependencies
4+
RUN apt update; \
5+
apt install -y --no-install-recommends \
6+
autoconf \
7+
build-essential \
8+
liblzma-dev \
9+
liblzo2-dev \
10+
libraptor2-dev \
11+
libserd-dev \
12+
libtool \
13+
zlib1g-dev \
14+
; \
15+
rm -rf /var/lib/apt/lists/*;
1316

1417
WORKDIR /usr/local/src/hdt-cpp
1518
COPY . .

0 commit comments

Comments
 (0)