Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
nanoppa
/
or
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
or
/
Dockerfile
nanoppa
Create Dockerfile
9c445c3
verified
4 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
225 Bytes
FROM
python:
3.12
-slim
# 设置工作目录
WORKDIR
/app
# 复制应用代码
COPY
. .
# 安装依赖
RUN
pip install --no-cache-dir flask requests dotenv
# 暴露端口
EXPOSE
7860
# 运行应用
CMD
[
"python"
,
"app.py"
]