add scirpts

This commit is contained in:
oscarz
2025-03-24 10:42:14 +08:00
parent e9843b652e
commit ff034b6994
4 changed files with 244 additions and 0 deletions

39
docker/stash/Dockerfile Normal file
View File

@ -0,0 +1,39 @@
# 使用 Ubuntu 最新的 x86_64 版本
FROM --platform=linux/x86_64 stashapp/stash:latest
# 设置时区,避免交互式输入
ENV DEBIAN_FRONTEND=noninteractive
# 更新软件包和安装常用工具
RUN apk update && apk add --no-cache \
git \
yt-dlp \
curl \
wget \
vim \
bash \
python3 \
py3-pip \
&& rm -rf /var/cache/apk/*
# 创建工作目录
WORKDIR /app
# 将 requirements.txt 复制到工作目录
COPY requirements.txt .
# 安装项目依赖
RUN pip3 install -r requirements.txt --break-system-packages
# 设置 Git 配置
RUN git config --global user.name "oscar" && \
git config --global user.email "oscar@easyprompt8.com" && \
git config --global credential.helper store
# 复制 FutuOpenD 安装包(假设你事先下载了 FutuOpenD
# 如果你希望 Docker 自动下载,可以在 ENTRYPOINT 里手动执行
# COPY FutuOpenD.tar.gz /root/
# RUN tar -xzf /root/FutuOpenD.tar.gz -C /root/ && rm /root/FutuOpenD.tar.gz
# 启动时进入 bash 交互模式
CMD ["/bin/bash"]