Skip to content

Commit db6b83c

Browse files
committed
Cache common dependencies
1 parent 452d9af commit db6b83c

File tree

3 files changed

+418
-0
lines changed

3 files changed

+418
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ RUN dart pub global activate --source git https://github.com/ls1intum/dart_analy
66
RUN apt-get update && apt-get install -y --no-install-recommends \
77
xmlstarlet \
88
&& rm -rf /var/lib/apt/lists/*
9+
10+
# Cache common dependencies
11+
COPY pubspec.yaml pubspec.lock .
12+
RUN dart pub get && rm -r .dart_tool pubspec.yaml pubspec.lock

0 commit comments

Comments
 (0)