ankpan18 commited on
Commit
83660cc
·
1 Parent(s): 475f47e

added the home route

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -3
  2. app/main/routes.py +2 -1
Dockerfile CHANGED
@@ -12,9 +12,8 @@ RUN apt-get update && \
12
  RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 pip vim mc wget curl
13
 
14
  # to make open-cv work
15
- RUN apt-get install ffmpeg libsm6 libxext6 python3-mysql.connector -y
16
- # to make mysql.connector work
17
- RUN apt-get install python3-mysql.connector -y
18
 
19
 
20
  COPY . /app
 
12
  RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 pip vim mc wget curl
13
 
14
  # to make open-cv work
15
+ RUN apt-get install ffmpeg libsm6 libxext6 -y
16
+
 
17
 
18
 
19
  COPY . /app
app/main/routes.py CHANGED
@@ -3,4 +3,5 @@ from app.main import bp
3
 
4
  @bp.route("/")
5
  def index():
6
- return redirect("/demo/")
 
 
3
 
4
  @bp.route("/")
5
  def index():
6
+ return "<h1>This is the home page of face rec api</h1>"
7
+ # return redirect("/demo/")