mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
62b80a81d3
* updated Dockerfile - use `python:3.10-slim` as baseimage - separate builder and runtime stages again - get rid of uneeded packages - pin packages for persistence - remove outdir from entrypoint since invoke.init is available in /data - shrinked image size to <2GB - way better security score than before * small output update to build.sh and run.sh * update matrix in build-container.yml * remove branches from build-container.yml
20 lines
465 B
Bash
Executable File
20 lines
465 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
source ./docker-build/env.sh || echo "please run from repository root" || exit 1
|
|
|
|
echo -e "You are using these values:\n"
|
|
echo -e "volumename:\t ${volumename}"
|
|
echo -e "invokeai_tag:\t ${invokeai_tag}\n"
|
|
|
|
docker run \
|
|
--interactive \
|
|
--tty \
|
|
--rm \
|
|
--platform="$platform" \
|
|
--name="$project_name" \
|
|
--hostname="$project_name" \
|
|
--mount="source=$volumename,target=/data" \
|
|
--publish=9090:9090 \
|
|
"$invokeai_tag" ${1:+$@}
|