Kan3ki25
Docker argument issues - python sdk (docker_args)
example of args
args = """
bash -c "
apt update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y openssh-server imagemagick && \
pip3 install pyTelegramBotAPI && \
mkdir -p ~/.ssh && \ chmod 700 ~/.ssh && \ echo "$PUBLIC_KEY" >> ~/.ssh/authorized_keys && \ chmod 600 ~/.ssh/authorized_keys && \ service ssh start && \
wget -O /facefusion/main.py https://gist.githubusercontent.com/K.../main.py OUTPUT_PATH="/facefusion/face.jpg" TEMP_FILE="./temp_image" curl -L "$IMG_URL" -o "$TEMP_FILE" IMG_TYPE=$(identify -format "%m" "$TEMP_FILE") if [ "$IMG_TYPE" != "JPEG" ]; then convert "$TEMP_FILE" "$OUTPUT_PATH" else mv "$TEMP_FILE" "$OUTPUT_PATH" fi cd /facefusion && \ python3 main.py && \ sleep infinity " """
mkdir -p ~/.ssh && \ chmod 700 ~/.ssh && \ echo "$PUBLIC_KEY" >> ~/.ssh/authorized_keys && \ chmod 600 ~/.ssh/authorized_keys && \ service ssh start && \
wget -O /facefusion/main.py https://gist.githubusercontent.com/K.../main.py OUTPUT_PATH="/facefusion/face.jpg" TEMP_FILE="./temp_image" curl -L "$IMG_URL" -o "$TEMP_FILE" IMG_TYPE=$(identify -format "%m" "$TEMP_FILE") if [ "$IMG_TYPE" != "JPEG" ]; then convert "$TEMP_FILE" "$OUTPUT_PATH" else mv "$TEMP_FILE" "$OUTPUT_PATH" fi cd /facefusion && \ python3 main.py && \ sleep infinity " """
3 replies