Allow changing NODE_ENV

This commit is contained in:
itepechi 2023-09-16 07:15:14 +09:00
parent 894b89e459
commit 20cf8f978b
1 changed files with 2 additions and 1 deletions

View File

@ -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: