|
1 | 1 | .PHONY: build-dev
|
2 | 2 | build-dev: ## Build the development docker image.
|
3 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/development/docker-compose.yml build |
| 3 | + docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 --target development . |
4 | 4 |
|
5 | 5 | .PHONY: start-dev
|
6 | 6 | start-dev: ## Start the development docker container.
|
7 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/development/docker-compose.yml up -d |
| 7 | + docker run -d -p 3000:3000 -v ./_data:/data --env-file .env.development --restart unless-stopped easypanel-nextjs:0.0.1 |
8 | 8 |
|
9 | 9 | .PHONY: stop-dev
|
10 | 10 | stop-dev: ## Stop the development docker container.
|
11 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/development/docker-compose.yml down |
| 11 | + docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1) |
12 | 12 |
|
13 | 13 | .PHONY: build-staging
|
14 | 14 | build-staging: ## Build the staging docker image.
|
15 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/staging/docker-compose.yml build |
| 15 | + docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 . |
16 | 16 |
|
17 | 17 | .PHONY: start-staging
|
18 | 18 | start-staging: ## Start the staging docker container.
|
19 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/staging/docker-compose.yml up -d |
| 19 | + docker run -d -p 3000:3000 -v ./_data:/data --env-file .env.staging --restart unless-stopped easypanel-nextjs:0.0.1 |
20 | 20 |
|
21 | 21 | .PHONY: stop-staging
|
22 | 22 | stop-staging: ## Stop the staging docker container.
|
23 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/staging/docker-compose.yml down |
| 23 | + docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1) |
24 | 24 |
|
25 | 25 | .PHONY: build-prod
|
26 | 26 | build-prod: ## Build the production docker image.
|
27 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/production/docker-compose.yml build |
| 27 | + docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 . |
28 | 28 |
|
29 | 29 | .PHONY: start-prod
|
30 | 30 | start-prod: ## Start the production docker container.
|
31 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/production/docker-compose.yml up -d |
| 31 | + docker run -d -p 3000:3000 -v ./_data:/data --env-file .env.production --restart unless-stopped easypanel-nextjs:0.0.1 |
32 | 32 |
|
33 | 33 | .PHONY: stop-prod
|
34 | 34 | stop-prod: ## Stop the production docker container.
|
35 |
| - BUILDKIT_PROGRESS=plain docker compose -f docker/production/docker-compose.yml down |
| 35 | + docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1) |
0 commit comments