migpt / Dockerfile
Asem123's picture
Update Dockerfile
3a14a46 verified
raw
history blame contribute delete
544 Bytes
# 直接用作者已经打包好的官方镜像
#FROM idootop/migpt-next:latest
# 把我们的配置塞进容器里它默认会读 /app/config.js
#COPY config.js /app/config.js
FROM idootop/migpt-next:latest
WORKDIR /app
# 你的私密配置(镜像默认读取 /app/config.js)
COPY config.js /app/config.js
# 启动脚本
COPY start.sh /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/start.sh
# 告诉 HF 监听端口
ENV PORT=7860
# 用我们的 ENTRYPOINT;不再接力原 entrypoint
ENTRYPOINT ["/usr/local/bin/start.sh"]