Skip to content

Commit

Permalink
chore(dockerfile): Fix cache issue with flutter download
Browse files Browse the repository at this point in the history
  • Loading branch information
Grohden committed Aug 5, 2020
1 parent 7c4839f commit 0194579
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ ENV PATH ${PATH}:${FLUTTER_ROOT}/bin:${FLUTTER_ROOT}/bin/cache/dart-sdk/bin

RUN git clone --branch "beta" --depth 1 https://github.com/flutter/flutter.git ${FLUTTER_ROOT}

# Cached layer for flutter deps
RUN flutter config --enable-web

# Copy current frontend
COPY --chown=root:root ./frontend .

# Cached layer for flutter deps
RUN flutter config --enable-web && flutter packages get

# Generate and build the frontend app
RUN dart tools/env_generator.dart && \
RUN flutter packages get && \
flutter packages pub run build_runner build --delete-conflicting-outputs && \
flutter build web

Expand Down

0 comments on commit 0194579

Please sign in to comment.