Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
siran002
/
Gapi
like
0
Running
App
Files
Files
Community
main
Gapi
/
Dockerfile
siran002
Create Dockerfile
f551fd4
verified
3 months ago
raw
Copy download link
history
blame
contribute
delete
No virus
249 Bytes
# 使用node镜像
FROM
node:
20
# 创建工作目录
WORKDIR
/app
# 将本地所有文件复制到工作目录
COPY
. .
#安装依赖
RUN
npm install -g pnpm
RUN
pnpm install express
# 暴露端口
EXPOSE
7860
# 启动!
CMD
[
"node"
,
"app.js"
]