Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add safe directory + fetch-depth #31

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dockerfiles/flutter.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN set -eux; mkdir -p /usr/lib /tmp/glibc $PUB_CACHE \
&& rm -rf /var/lib/apt/lists/* /var/cache/apk/*

# Install & config Flutter
RUN set -eux; git clone -b ${VERSION} --depth 1 "${FLUTTER_URL}.git" "${FLUTTER_ROOT}" \
RUN set -eux; git clone -b ${VERSION} "${FLUTTER_URL}.git" "${FLUTTER_ROOT}" \
&& cd "${FLUTTER_ROOT}" \
&& git gc --prune=all

Expand Down Expand Up @@ -116,9 +116,9 @@ RUN set -eux; mkdir -p /build; apk --no-cache add bash git curl unzip \
&& dart --disable-analytics && flutter config --no-analytics \
&& flutter doctor && flutter precache --universal

#RUN set -eux; git config --global user.email "flutter@dart.dev" \
#&& git config --global user.name "Flutter" \
#&& git config --global --add safe.directory /opt/flutter
RUN set -eux; git config --global user.email "flutter@dart.dev" \
&& git config --global user.name "Flutter" \
&& git config --global --add safe.directory /opt/flutter

#ENV BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"

Expand Down