huiiz commited on
Commit
b6f4b12
1 Parent(s): 6ea9c71
Files changed (2) hide show
  1. Dockerfile +4 -3
  2. README.md +1 -1
Dockerfile CHANGED
@@ -6,9 +6,10 @@ RUN apt-get upgrade
6
  RUN apt-get update
7
  # 安装mysql
8
  # RUN apt-get install -y mysql-server mysql-client libmysqlclient-dev
9
- # RUN apt-get install -y python3 python3-pip
10
-
 
11
  # RUN mysql -u root -p
12
 
13
 
14
- CMD mysql -V
 
6
  RUN apt-get update
7
  # 安装mysql
8
  # RUN apt-get install -y mysql-server mysql-client libmysqlclient-dev
9
+ RUN apt-get install -y python3 python3-pip
10
+ WORKDIR /code
11
+ COPY . .
12
  # RUN mysql -u root -p
13
 
14
 
15
+ CMD python3 -m http.server
README.md CHANGED
@@ -6,7 +6,7 @@ colorTo: pink
6
  sdk: docker
7
  pinned: false
8
  license: mit
9
- app_port: 3306
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
6
  sdk: docker
7
  pinned: false
8
  license: mit
9
+ app_port: 8000
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference