HF-Space-Manager / Dockerfile
HuggingFace0920's picture
Update Dockerfile
f0730ec verified
raw
history blame contribute delete
424 Bytes
FROM node:18
# 设置工作目录
WORKDIR /app
# 克隆仓库
RUN git clone https://github.com/ssfun/hf-space-manager.git .
# 安装依赖
RUN npm install
# 设置环境变量(可根据需要在docker run时覆盖)
ENV HF_USER="user1:token1,user2:token2,user3:"
ENV API_KEY="your_api_key_here"
ENV USER_NAME="admin"
ENV USER_PASSWORD="secretpassword"
# 暴露端口
EXPOSE 8080
# 启动应用
CMD ["npm", "start"]