mirror of
https://github.com/tcsenpai/sdnext_docker.git
synced 2025-06-02 17:30:12 +00:00
added some control
This commit is contained in:
parent
7b75f43046
commit
22614f05e2
@ -11,6 +11,11 @@ RUN apt-get install -y bash
|
||||
# Install dos2unix
|
||||
RUN apt-get install -y dos2unix
|
||||
|
||||
# Install libgl1-mesa-glx
|
||||
# NOTE This is needed for some extensions and will save a lot of headaches later
|
||||
RUN apt-get install -y libgl1-mesa-glx libglib2.0-0
|
||||
|
||||
|
||||
# Install pip requirements
|
||||
#COPY app/automatic/requirements.txt .
|
||||
#RUN pip install -r requirements.txt
|
||||
|
@ -16,6 +16,10 @@ You can also:
|
||||
The container mounts the app/automatic_repo folder as a volume, so you can add models and other files to it.
|
||||
After the first run, you will find the folder under app/automatic_repo.
|
||||
|
||||
## Pre-run script
|
||||
|
||||
You can add a pre_run.sh file to the app folder, and it will be run on startup. This can be used to install dependencies for python in case something is missing.
|
||||
|
||||
## Run
|
||||
|
||||
```
|
||||
|
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# If a file named "pre_run.sh" exists, run it
|
||||
if [ -f "pre_run.sh" ]; then
|
||||
./pre_run.sh
|
||||
fi
|
||||
|
||||
# If no folder named automatic, clone the repository
|
||||
if [ ! -d "automatic_repo" ]; then
|
||||
git clone https://github.com/vladmandic/automatic automatic_repo
|
||||
@ -9,5 +14,6 @@ else
|
||||
git pull
|
||||
fi
|
||||
|
||||
|
||||
#pip install -r requirements.txt
|
||||
bash webui.sh --debug --insecure --listen
|
6
app/pre_run.sh
Normal file
6
app/pre_run.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#! /bin/bash
|
||||
echo "== Pre-run script =="
|
||||
|
||||
# You can add any commands you want to run here
|
||||
# For example:
|
||||
# apt-get install -y libgl1-mesa-glx libglib2.0-0
|
Loading…
x
Reference in New Issue
Block a user