blob: 49faaa32ad4d423b75559cf395b4319209f9f83c [file] [log] [blame]
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Capture the directory this script resides in
SCRIPT_DIRECTORY="$(dirname $(readlink -f "$0"))"
# Set context to flutter/dev
# Convert "+" to "-" to make hotfix tags legal Docker tag names.
# See
# pull to make sure we are not rebuilding for nothing
sudo docker pull "$TAG"
sudo docker build "$@" \
--tag "$TAG" \
--file "$SCRIPT_DIRECTORY/Dockerfile" \