We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edac2af commit f8c7376Copy full SHA for f8c7376
scripts/create-ghe-environment
@@ -97,12 +97,12 @@ archive_path="$PWD/$image_name.tar.gz"
97
98
log_progress "Building custom image, based on $distrib"
99
# Sanity check
100
-if ! grep -q -- "-slim as build\$" "$ROOT_DIR/Dockerfile" ; then
+if ! grep -q -- "-slim AS build\$" "$ROOT_DIR/Dockerfile" ; then
101
die "Dockerfile has changed, this script is outdated"
102
fi
103
104
# Modify the FROM command to use the distribution we want
105
-sed "s/-slim as build\$/-slim-$distrib as build/" "$ROOT_DIR/Dockerfile" \
+sed "s/-slim AS build\$/-slim-$distrib AS build/" "$ROOT_DIR/Dockerfile" \
106
| docker build --tag "$image_name" --file - "$ROOT_DIR"
107
108
log_progress "Building container from image"
0 commit comments