forked from mirrors/treebird-docker
14 lines
402 B
Bash
Executable file
14 lines
402 B
Bash
Executable file
#!/bin/sh
|
|
# Build the container image and perfom additional steps
|
|
IMAGE_NAME=${1:-treebird:latest}
|
|
CONTAINER_NAME=${2:-treebird}
|
|
|
|
RESOURCES_SRC=/usr/local/share/dist
|
|
RESOURCES_DST=./to-webserv
|
|
|
|
docker build -t $IMAGE_NAME .
|
|
|
|
# copy out the shared dist files
|
|
docker run --rm --name $CONTAINER_NAME -d $IMAGE_NAME
|
|
docker cp ${CONTAINER_NAME}:${RESOURCES_SRC} ${RESOURCES_DST}
|
|
docker stop $CONTAINER_NAME
|