Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
chb2024
/
genspark2api
like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
1e4aac4
genspark2api
/
Dockerfile
chb2024
Create Dockerfile
1e4aac4
verified
about 1 month ago
raw
Copy download link
history
blame
Safe
287 Bytes
# 使用 Node 20 Alpine 作为基础镜像
FROM
node:
20
-alpine
# 设置容器内的工作目录
WORKDIR
/app
# 复制整个项目目录到容器中
COPY
. .
# 安装依赖
RUN
npm install
# 暴露应用运行的端口
EXPOSE
8666
# 运行应用的命令
CMD
[
"node"
,
"src/index.js"
]