dashboard / Dockerfile
linjinpeng's picture
Create Dockerfile
071777f verified
raw
history blame contribute delete
386 Bytes
FROM node:18-alpine
# 设置工作目录
WORKDIR /app
# 安装 git
RUN apk add --no-cache git
# 克隆项目
RUN git clone https://github.com/ssfun/hf-space-manager.git .
# 安装依赖
RUN npm install
# 暴露端口 (HuggingFace Spaces 通常使用 7860)
EXPOSE 7860
# 设置环境变量端口为 HuggingFace Spaces 标准端口
ENV PORT=7860
# 启动应用
CMD ["npm", "start"]