-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
35 lines (27 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: build-dev
build-dev: ## Build the development docker image.
docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 --target development .
.PHONY: start-dev
start-dev: ## Start the development docker container.
docker run -d -p 3000:3000 -v ./_data:/data --env-file .env.development --restart unless-stopped easypanel-nextjs:0.0.1
.PHONY: stop-dev
stop-dev: ## Stop the development docker container.
docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1)
.PHONY: build-staging
build-staging: ## Build the staging docker image.
docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 .
.PHONY: start-staging
start-staging: ## Start the staging docker container.
docker run -d -p 3000:3000 -v ./_data:/data --env-file .env.staging --restart unless-stopped easypanel-nextjs:0.0.1
.PHONY: stop-staging
stop-staging: ## Stop the staging docker container.
docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1)
.PHONY: build-prod
build-prod: ## Build the production docker image.
docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 .
.PHONY: start-prod
start-prod: ## Start the production docker container.
docker run -d -p 3000:3000 -v ./_data:/data --env-file .env --restart unless-stopped easypanel-nextjs:0.0.1
.PHONY: stop-prod
stop-prod: ## Stop the production docker container.
docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1)