-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 1002 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
IMAGE = garychen/nginx
CONTAINER_NAME = nginx
VERSION = 1.1.0
WEB_PORT = 88
all: alpine alpine-qeek alpine-qeek-ffmpeg
alpine:
echo "docker build -t ${IMAGE}:${VERSION}-alpine"
docker build -t "${IMAGE}:${VERSION}-alpine" -f Dockerfile.alpine .
alpine-run:
docker run -d --rm -p ${WEB_PORT}:80 --name ${CONTAINER_NAME} ${IMAGE}:${VERSION}-alpine
alpine-qeek:
echo "docker build -t ${IMAGE}:${VERSION}-alpine-qeek"
docker build -t "${IMAGE}:${VERSION}-alpine-qeek" -f Dockerfile.alpine_qeek .
alpine-qeek-run:
docker run -d --rm -p ${WEB_PORT}:80 --name ${CONTAINER_NAME} ${IMAGE}:${VERSION}-alpine-qeek
alpine-qeek-ffmpeg:
echo "docker build -t ${IMAGE}:${VERSION}-alpine-qeek-ffmpeg"
docker build -t "${IMAGE}:${VERSION}-alpine-qeek-ffmpeg" -f Dockerfile.alpine_qeek_ffmpeg .
alpine-qeek-ffmpeg-run:
docker run -d --rm -p ${WEB_PORT}:80 --name ${CONTAINER_NAME} ${IMAGE}:${VERSION}-alpine-qeek-ffmpeg
bash:
docker exec -ti ${CONTAINER_NAME} bash
stop:
docker stop ${CONTAINER_NAME}