1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

cleanup build a little

This commit is contained in:
Ivan Mikushin
2015-07-09 00:20:16 +05:00
parent a8fcbb7aad
commit 26f470543d
2 changed files with 3 additions and 3 deletions

View File

@@ -9,6 +9,8 @@ DOCKER_FILE=${CONFIG}/.dockerfile
write_base()
{
DOCKER_BASE=${DOCKER_BASE:?"DOCKER_BASE not defined"}
if [ "${BASE_WRITTEN}" = "true" ]; then
return
fi
@@ -16,7 +18,7 @@ write_base()
mkdir -p $(dirname ${DOCKER_FILE})
cat > ${DOCKER_FILE} << EOF
FROM ${DOCKER_BASE:=ubuntu:14.04.2}
FROM ${DOCKER_BASE}
ENV TERM xterm
ENV IN_DOCKER true
WORKDIR /source