public-shell/lcpubsh/bin/make_lc_user_image.sh
Georg 5596e5d36f
Init
Signed-off-by: Georg <georg@lysergic.dev>
2021-08-14 10:02:44 +02:00

13 lines
352 B
Bash

#!/bin/bash
# Original by https://github.com/sleeepyjack/dockersh
# Modified by georg@lysergic.dev
if [ -z "$1" -o -z "$2" ]; then
echo "./make_user_image.sh [name] [source-image]"; exit 100
fi
sed -i "1s/.*/FROM $2/" /opt/dockersh/dockersh-git/image_template/Dockerfile
cd /opt/dockersh/dockersh-git/image_template
docker build -t $1:sh0 .