blob: fb0aa8ac776d83a1c097e33d800b6dd9bf0a619e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/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 .
|