badalsahani commited on
Commit
7468dfd
1 Parent(s): d9ad9a6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:alpine
2
+
3
+ RUN mkdir -p /code
4
+ RUN chmod 777 /code
5
+
6
+ WORKDIR /code
7
+
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ RUN apk --no-cache add ffmpeg
11
+
12
+ RUN pip install --upgrade pip
13
+
14
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
+
16
+ COPY ./app /code/app
17
+
18
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]