ElvisWang111 commited on
Commit
0dcb030
·
verified ·
1 Parent(s): 342e4c4

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile11 +38 -0
  2. README.md +9 -7
Dockerfile11 ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # FROM python:3.12-slim
3
+
4
+ # # ========= 设置工作目录 =========
5
+ # WORKDIR /app
6
+
7
+ # # ========= 安装依赖 =========
8
+ # COPY ./requirements.txt ./requirements.txt
9
+ # RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
10
+ # && pip install --no-cache-dir -r requirements.txt
11
+
12
+ # # ========= 拷贝项目文件 =========
13
+ # COPY . /app
14
+
15
+ # # ========= 暴露 Streamlit 端口 =========
16
+ # EXPOSE 8501
17
+
18
+ # # ========= 健康检查 =========
19
+ # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
20
+
21
+ # # ========= 启动命令 =========
22
+ # CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
23
+ # ========= 基础镜像 =========
24
+ FROM python:3.12-slim
25
+
26
+ # ========= 改变工作目录 =========
27
+ WORKDIR /tmp
28
+
29
+ # ========= 安装依赖 =========
30
+ COPY ./requirements.txt ./requirements.txt
31
+ RUN pip install --no-cache-dir -r requirements.txt
32
+
33
+ # ========= 拷贝项目文件 =========
34
+ COPY . /tmp
35
+
36
+ # ========= 暴露端口并启动 =========
37
+ EXPOSE 8501
38
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
README.md CHANGED
@@ -1,17 +1,19 @@
1
  ---
2
- title: Anystat
3
  emoji: 🚀
4
  colorFrom: red
5
- colorTo: red
6
- sdk: docker
7
- app_port: 8501
8
- tags:
9
- - streamlit
10
  pinned: false
 
11
  short_description: testtesttest
 
 
 
12
  ---
13
 
14
-
15
  <p align = 'center'>
16
  <span style="font-size: 50px">
17
  <em><b>Anystat</b>: Statistical Analysis, Instantly.
 
1
  ---
2
+ title: Teststat1
3
  emoji: 🚀
4
  colorFrom: red
5
+ colorTo: blue
6
+ sdk: streamlit
7
+ sdk_version: 1.48.1
8
+ app_file: app.py
 
9
  pinned: false
10
+ license: mit
11
  short_description: testtesttest
12
+ tags:
13
+ - streamlit
14
+ - data-analysis
15
  ---
16
 
 
17
  <p align = 'center'>
18
  <span style="font-size: 50px">
19
  <em><b>Anystat</b>: Statistical Analysis, Instantly.