diff --git a/Dockerfile b/Dockerfile
index a5b3b7019f48f6c8d304fa02bfcdbe4c0a1caebd..a732e15e337248799a32fb124be5883954d0cc74 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,8 +4,6 @@
 
 FROM node:12.20.1-alpine as frontend
 
-ARG MB_EDITION=oss
-
 WORKDIR /app/source
 
 ENV FC_LANG en-US LC_CTYPE en_US.UTF-8
@@ -20,8 +18,6 @@ RUN yarn install --frozen-lockfile
 
 FROM adoptopenjdk/openjdk11:alpine as backend
 
-ARG MB_EDITION=oss
-
 WORKDIR /app/source
 
 ENV FC_LANG en-US LC_CTYPE en_US.UTF-8
diff --git a/hooks/build b/hooks/build
new file mode 100644
index 0000000000000000000000000000000000000000..7216e72ef7847de263b76afe69fae8e9941f6174
--- /dev/null
+++ b/hooks/build
@@ -0,0 +1,11 @@
+#!/bin/bash
+# for posterity
+# SOURCE_BRANCH: the name of the branch or the tag that is currently being tested.
+# SOURCE_COMMIT: the SHA1 hash of the commit being tested.
+# COMMIT_MSG: the message from the commit being tested and built.
+# DOCKER_REPO: the name of the Docker repository being built.
+# DOCKERFILE_PATH: the dockerfile currently being built.
+# DOCKER_TAG: the Docker repository tag being built.
+# IMAGE_NAME: the name and tag of the Docker repository being built. (This variable is a combination of DOCKER_REPO:DOCKER_TAG.)
+
+docker build -t $IMAGE_NAME --build-arg MB_EDITION=$MB_EDITION .
\ No newline at end of file