agung-madani commited on
Commit
2026269
1 Parent(s): 9492fbe

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 # For OpenCV
4
+
5
+ RUN useradd -m -u 1000 user
6
+
7
+ WORKDIR /app
8
+
9
+ COPY --chown=user requirements.txt requirements.txt
10
+
11
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
+
13
+ COPY --chown=user . /app
14
+
15
+ USER user
16
+
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]