Skip to content

Commit 8ece13e

Browse files
fix(makefile): ensure only one container binds to port 1313 during serve (#16546)
Signed-off-by: Aritra Dey <[email protected]>
1 parent 939da21 commit 8ece13e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile.overrides.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
# limitations under the License.
1414

1515
# expose port 1313 from the container in order to support 'make serve' which runs a Hugo web server
16+
ifeq ($(filter serve,$(MAKECMDGOALS)),serve)
1617
CONTAINER_OPTIONS = -p 1313:1313 ${ADDITIONAL_CONTAINER_OPTIONS}
18+
else
19+
CONTAINER_OPTIONS = ${ADDITIONAL_CONTAINER_OPTIONS}
20+
endif
1721

1822
# this repo is on the container plan by default
1923
BUILD_WITH_CONTAINER ?= 1

0 commit comments

Comments
 (0)