doordesk-js/dennis/build
2023-06-18 18:11:00 -04:00

16 lines
239 B
Bash
Executable file

#!/bin/bash
NAME="dennis"
FILE_PATH="dist/$NAME.tar.gz"
if [ ! -d "dist" ]; then
mkdir dist
fi
if [ -f $FILE_PATH ]; then
rm $FILE_PATH
fi
docker build -t $NAME .
echo "Compressing..." && docker save $NAME | pigz > $FILE_PATH