File size: 457 Bytes
6c9e360 eb618ee 6c9e360 eb618ee 6c9e360 eb618ee 6c9e360 eb618ee 6c9e360 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # 使用轻量级的 Node.js 镜像
FROM node:18-slim
# 安装 git 以克隆代码
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# 克隆 Ultraviolet 的官方精简部署版
RUN git clone https://github.com/titaniumnetwork-dev/Ultraviolet-App.git /app
WORKDIR /app
# 安装依赖
RUN npm install
# 设置 Hugging Face 必须的 7860 端口
ENV PORT=7860
EXPOSE 7860
# 启动程序
CMD ["npm", "start"] |