Skip to content

Commit 7ba224f

Browse files
author
Nils Bars
committed
Combine apt update and apt install in ref-docker-base
Keeping them in separate RUN layers lets Docker cache the update while invalidating only the install, so the cached package index can point at .deb versions that have been superseded on the mirrors.
1 parent d7f2f01 commit 7ba224f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ref-docker-base/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ FROM ubuntu:24.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
RUN apt update
6-
7-
RUN apt install -y \
5+
RUN apt update && apt install -y \
86
build-essential \
97
ca-certificates \
108
gcc gcc-multilib g++-multilib \

0 commit comments

Comments
 (0)