Skip to content

Commit 76cc560

Browse files
committed
Expose port and use 0.0.0.0 for localhost
1 parent 2dcbe1c commit 76cc560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ DEBIAN_VERSION = $(or $(DEBIAN_VERSION-$(PHP_VERSION)),$(DEBIAN_VERSION-def))
1515
COMPOSER_VERSION-7.1 = 2.2
1616
COMPOSER_VERSION-def = 2.7.6
1717
COMPOSER_VERSION = $(or $(COMPOSER_VERSION-$(PHP_VERSION)),$(COMPOSER_VERSION-def))
18+
LOCALHOST = 0.0.0.0
1819

1920
IMAGE = php-cli-composer:$(PHP_VERSION)-$(DEBIAN_VERSION)-$(COMPOSER_VERSION)
2021

@@ -35,6 +36,7 @@ DKR = docker container run $(TTYFLAGS) --rm \
3536
-w /srv/sdk/php \
3637
-e LRN_SDK_NO_DOCKER=1 \
3738
-e ENV -e REGION -e VER \
39+
-p 8000:8000 \
3840
$(if $(findstring dev,$(ENV)),--net host) \
3941
$(IMAGE)
4042

@@ -56,8 +58,6 @@ DIST_PREFIX = learnosity_sdk-
5658
SRC_VERSION := $(shell git describe | sed s/^v//)
5759
DIST = $(DIST_PREFIX)$(SRC_VERSION)
5860

59-
LOCALHOST = localhost
60-
6161
COMPOSER = composer
6262
COMPOSER_INSTALL_FLAGS = --no-interaction --optimize-autoloader --classmap-authoritative
6363

0 commit comments

Comments
 (0)