forked from openpitrix/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 937 Bytes
/
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
36
37
38
npm_cache := $(shell npm config get cache)
yarn_cache := $(shell yarn cache dir)
cwd := $(shell pwd)
build: Dockerfile
@echo building image..
docker build . -t op/web-app
build-dev: Dockerfile.dev
@echo building dev image..
docker build . -t op/web-app-dev -f Dockerfile.dev
run:
@echo up and running openpitrix-dashboard
docker run -p 8000:8000 --rm --name openpitrix-dashboard op/web-app
run-dev:
@echo up and running openpitrix-dashboard-dev
docker run -p 8000:8000 --rm --name openpitrix-dashboard-dev op/web-app-dev
# apline linux has no bash
sh:
docker exec -it openpitrix-dashboard sh
dev: docker-compose.yml
docker-compose up
rm:
docker-compose rm
build-base: Dockerfile
@echo building base image
docker build . --target base -t op/web-app-base
run-official:
@echo up and running official image
docker pull openpitrix/dashboard
docker run -d -p 8000:8000 --name openpitrix-dashboard openpitrix/dashboard