From 20cf8f978bb4ba587320a0e6e7a422a2312fc097 Mon Sep 17 00:00:00 2001 From: itepechi <72330683+itepechi@users.noreply.github.com> Date: Sat, 16 Sep 2023 07:15:14 +0900 Subject: [PATCH] Allow changing NODE_ENV --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f16920ef..074bd076 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ RUNTIME ?= docker BUILD_DIR ?= ./dist/ OUTFILE_ZIP ?= ./akkoma-fe.zip +NODE_ENV ?= production .PHONY: all all: build-docker build-fe package @@ -17,7 +18,7 @@ else rm -rf $(BUILD_DIR) mkdir $(BUILD_DIR) endif - $(RUNTIME) run -v ${PWD}/dist/:/app/dist/:Z akkoma-fe-builder build + $(RUNTIME) run -e NODE_ENV=$(NODE_ENV) -v ${PWD}/dist/:/app/dist/:Z akkoma-fe-builder build .PHONY: package package: