Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
smgc
/
vertex2api
like
0
Running
App
Files
Files
Community
47afc7f
vertex2api
/
Dockerfile
smgc
Update Dockerfile
504d115
verified
3 months ago
raw
Copy download link
history
blame
Safe
290 Bytes
# 使用Node.js官方镜像作为基础镜像
FROM
node:
14
# 设置工作目录
WORKDIR
/app
# 复制package.json和package-lock.json
COPY
package*.json ./
# 安装依赖
RUN
npm install
# 复制应用代码
COPY
. .
# 暴露端口
EXPOSE
8080
# 运行应用
CMD
[
"node"
,
"app.js"
]