一些基本操作

Jasmine

  • 将本地目录映射到 Docker 容器中
//例子1
docker run --rm -it -v D:\workspace\hugoArticleEncryptor:/hugoencryptor golang bash
//例子2 
docker run --rm -it -v D:\workspace\ChoiceMaster-telegram-bot:/app d25a66380b10283603ff696d7777bba5cdb1b9126fb0be7d118b9574946bcf84 bash
  • 启动web服务器
python3 -m http.server -b 0.0.0.0 -d public 1313
  • 构建docker image
docker build -t choicemaster-telegram-bot:latest . 

打tag

docker tag choicemaster-telegram-bot:latest ghcr.io/hotjuicew/choicemaster-telegram-bot:latest

上传到ghcr

docker push ghcr.io/hotjuicew/choicemaster-telegram-bot:latest

Previous post

2023723