rsshub / Dockerfile
solitudeLin's picture
Update Dockerfile
c85b1e1 verified
raw
history blame
450 Bytes
# 使用chromium-bundled版本,避免安装步骤
FROM diygod/rsshub:chromium-bundled
# 设置环境变量
ENV NODE_ENV=production
ENV PORT=7860
ENV CACHE_TYPE=memory
ENV CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
# 暴露端口
EXPOSE 7860
# 健康检查
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:7860/healthz || exit 1
# 启动RSSHub
CMD ["npm", "start", "--", "--port", "7860"]