modify scripts

This commit is contained in:
oscarz
2025-05-19 16:04:32 +08:00
parent 72b4d589c8
commit d252009356
3 changed files with 44 additions and 5 deletions

View File

@ -35,5 +35,6 @@ RUN git config --global user.name "oscar" && \
# COPY FutuOpenD.tar.gz /root/
# RUN tar -xzf /root/FutuOpenD.tar.gz -C /root/ && rm /root/FutuOpenD.tar.gz
# 启动时进入 bash 交互模式
CMD ["/bin/bash"]
# 使用 ENTRYPOINT 启动 Stash
ENTRYPOINT ["stash"]
#CMD ["start"] # 或其他启动参数

View File

@ -5,11 +5,11 @@ services:
build:
context: .
dockerfile: Dockerfile
container_name: newstash
container_name: stash
platform: linux/x86_64
restart: unless-stopped
ports:
- "8888:9999"
- "9999:9999" # 宿主机端口:容器端口
environment:
HTTP_PROXY: "http://192.168.2.20:7890"
HTTPS_PROXY: "http://192.168.2.20:7890"
@ -42,7 +42,9 @@ services:
- ~/dockers/stash/.gitconfig:/root/.gitconfig # 共享 Git 配置文件
networks:
- devops
#command: tail -f /dev/null # 保持容器运行,调试使用
#stdin_open: true
#tty: true
networks:
devops:
external: true