forked from FalconChristmas/fpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerBuild.sh
executable file
·23 lines (15 loc) · 916 Bytes
/
dockerBuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
FPPBRANCH=${FPPBRANCH:-"master"}
# build the docker image
docker build -t falconchristmas/fpp:latest -f Docker/Dockerfile --build-arg FPPBRANCH=${FPPBRANCH} .
#or
#docker build -t falconchristmas/fpp:latest --build-arg EXTRA_INSTALL_FLAG=--skip-clone -f Docker/Dockerfile .
#to run the image using the local content to override:
# On OSX, it's highly suggested to set an env variable of:
# export DOCKER_MOUNT_FLAG=":delegated"
# Using :delegated will drop the "make" time by almost half.
# However, editing files from OSX may take an extra second
# before the changes are available within the docker container.
# docker run --name fpp --hostname fppDocker -t -i -p 80:80 -p 4048:4048/udp -p 5568:5568/udp -p 32320:32320/udp -v ${PWD}:/opt/fpp${DOCKER_MOUNT_FLAG} falconchristmas/fpp:latest
# A sample docker-compose.yml file to use the docker image is also
# included in the Docker directory.