Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: 增加docker部署server端 #118

Closed
3 tasks done
utopeadia opened this issue Dec 6, 2023 · 5 comments
Closed
3 tasks done

[Feature]: 增加docker部署server端 #118

utopeadia opened this issue Dec 6, 2023 · 5 comments
Assignees

Comments

@utopeadia
Copy link

前置阅读 | Pre-reading

PicList的版本 | PicList Version

latest

系统信息 | System Information

All

功能请求 | Feature request

封装docker便于部署,暴漏server端口,持久化config文件

@Kuingsmile
Copy link
Owner

这里指的是docker部署piclist-core吧

@utopeadia
Copy link
Author

这里指的是docker部署piclist-core吧

是的,封装一个piclist-core容器

@Kuingsmile
Copy link
Owner

这里指的是docker部署piclist-core吧

是的,封装一个piclist-core容器

可 我测试测试 后续的更新会在piclist-core的仓库内

@utopeadia
Copy link
Author

utopeadia commented Dec 6, 2023

这里指的是docker部署piclist-core吧

是的,封装一个piclist-core容器

可 我测试测试 后续的更新会在piclist-core的仓库内

我对Dockerfile不是很熟,可能大概这样:

FROM alpine
# 安装 Node.js 和 npm
RUN apk add --no-cache nodejs npm
# 安装 sharp 依赖
RUN npm install sharp
RUN npm install piclist -g
# 暴露端口  
EXPOSE 36677
# 数据卷,用于挂载配置
VOLUME /config 
# 启动命令  
CMD ["picgo-server", "-c", "/config/config.json"]  

@Kuingsmile
Copy link
Owner

added 2de1a1f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants