mirror of
https://github.com/dokku/dokku.git
synced 2025-12-28 16:06:40 +01:00
15 lines
410 B
Bash
Executable File
15 lines
410 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
NAME="$1"
|
|
|
|
# Place the app inside the container
|
|
ID=$(cat | docker run -i -a stdin progrium/buildstep /bin/bash -c "mkdir -p /app && tar -xC /app")
|
|
test $(docker wait $ID) -eq 0
|
|
docker commit $ID $NAME > /dev/null
|
|
|
|
# Run the builder script and attach to view output
|
|
ID=$(docker run -d $NAME /build/builder)
|
|
docker attach $ID
|
|
test $(docker wait $ID) -eq 0
|
|
docker commit $ID $NAME > /dev/null
|