This commit is contained in:
vipg
2026-01-12 09:47:16 +08:00
parent c763586ff3
commit 7cea83cf2d

View File

@@ -1,3 +1,5 @@
#!/bin/sh
set -e # 遇到错误立即退出
sudo docker run -itd --name text_format_python -v ./:/app python:3.13.7-alpine3.22
set -e
# 获取脚本本身所在目录的绝对路径(万能写法,无论在哪执行脚本都生效)
SCRIPT_DIR=$(cd $(dirname $0) && pwd)
sudo docker run -itd --name text_format_python -v "$SCRIPT_DIR":/app python:3.13.7-alpine3.22