Skip to content

Commit 75796bf

Browse files
authored
Merge pull request #129 from NTUT-NPC/fix-dartdoc-cache-mount
2 parents e599ef2 + 9e3c1a2 commit 75796bf

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

doc/Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,11 @@ RUN --mount=type=cache,target=/mise/cache \
2323
mise trust && \
2424
mise install flutter
2525

26-
# Resolve app dependencies
27-
COPY pubspec.* ./
28-
RUN --mount=type=cache,target=/root/.pub-cache \
29-
flutter --disable-analytics && \
30-
flutter pub get --enforce-lockfile
31-
32-
# Copy app source code
26+
# Resolve app dependencies and generate documentation
3327
COPY . .
34-
35-
# Generate documentation
3628
RUN --mount=type=cache,target=/root/.pub-cache \
29+
flutter --disable-analytics && \
30+
flutter pub get --enforce-lockfile && \
3731
dart doc
3832

3933
FROM caddy:2-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d

0 commit comments

Comments
 (0)