doublelotus commited on
Commit
5e15859
·
1 Parent(s): 5edf838

shredded to pieces

Browse files
Files changed (2) hide show
  1. Dockerfile +13 -0
  2. main.py +1 -1
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
+
11
+ COPY . .
12
+
13
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]
main.py CHANGED
@@ -27,7 +27,7 @@ print('Setup SAM model')
27
 
28
  @app.route('/')
29
  def hello():
30
- return {"hei": "Malevolent Shrine :D"}
31
 
32
  @app.route('/health', methods=['GET'])
33
  def health_check():
 
27
 
28
  @app.route('/')
29
  def hello():
30
+ return {"hei": "Shredded to peices"}
31
 
32
  @app.route('/health', methods=['GET'])
33
  def health_check():