Allow changing NODE_ENV
This commit is contained in:
parent
894b89e459
commit
20cf8f978b
1 changed files with 2 additions and 1 deletions
3
Makefile
3
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:
|
||||
|
|
Loading…
Reference in a new issue