Skip to content

Commit 4a58b59

Browse files
fix: ensure apt-get update runs on container update (#663)
Because of Docker layering, `apt-get update` and `apt-get install` need to be in the same RUN command fixes #604
1 parent d595041 commit 4a58b59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.devcontainer/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ ENV DEBIAN_FRONTEND=noninteractive
55
WORKDIR /workspace
66

77
RUN export DEBIAN_FRONTEND=noninteractive
8-
RUN apt-get update
98

109
# please keep pkgs sorted
11-
RUN apt-get install -y --no-install-recommends \
10+
RUN \
11+
apt-get update && \
12+
apt-get install -y --no-install-recommends --fix-missing \
1213
build-essential \
1314
bundler \
1415
clang-format \

0 commit comments

Comments
 (0)