Gist 源代码地址:https://github.com/9bingyin/Gist
构建镜像和容器运行的基本命令如下👇
# 下载代码
git clone https://github.com/9bingyin/Gist.git
# 进入目录
cd Gist
# 构建镜像
docker build -t wbsu2003/gist:v1 .
# 创建数据库
touch app.db
# 运行容器
docker run -d \
--restart unless-stopped \
--name gist \
-p 3166:3000 \
-v $(pwd)/app.db:/app/dev.db \
-e DATABASE_URL="file:./dev.db" \
wbsu2003/gist:v1
# 首次运行后,还需要进入容器初始化数据库
docker exec -it gist bunx prisma db push
# 初始化完成最好重启一下容器
docker restart gist
镜像使用方法可以在 老苏的blog:https://laosu.tech 找找,如果找不到,那说明还在折腾中~~
欢迎关注公众号:

Content type
Image
Digest
sha256:f129c09ab…
Size
959.2 MB
Last updated
9 months ago
docker pull wbsu2003/gist