mirror of
https://git.freecumextremist.com/icscarythings/treebird-docker.git
synced 2024-11-16 17:54:12 +00:00
14 lines
411 B
Bash
Executable file
14 lines
411 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/treebird/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
|