update dockerfile to make config

This commit is contained in:
realaravinth
2021-12-16 15:55:46 +05:30
parent b2297eab6d
commit 5ac0b36255
2 changed files with 24 additions and 11 deletions

View File

@@ -2,6 +2,11 @@ BUNDLE = static/cache/bundle
OPENAPI = docs/openapi
CLEAN_UP = $(BUNDLE) src/cache_buster_data.json assets
define frontend_env ## install frontend deps
yarn install
cd docs/openapi && yarn install
endef
default: frontend ## Build app in debug mode
cargo build
@@ -26,10 +31,13 @@ docker-publish: docker ## Build and publish Docker image
env: ## Setup development environtment
cargo fetch
yarn install
cd docs/openapi && yarn install
$(call frontend_env)
frontend: env ## Build frontend
frontend-env: ## Install frontend deps
$(call frontend_env)
frontend: ## Build frontend
$(call frontend_env)
cd $(OPENAPI) && yarn build
yarn install
@-rm -rf $(BUNDLE)