AndreySokolov01 commited on
Commit
eadcb42
·
verified ·
1 Parent(s): 17daf6e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -5
Dockerfile CHANGED
@@ -1,5 +1,14 @@
1
- docker build -t omniparse .
2
- # if you are running on a gpu
3
- docker run --gpus all -p 8000:8000 omniparse
4
- # else
5
- docker run -p 8000:8000 omniparse
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.9
3
+
4
+ RUN useradd -m -u 1000 user
5
+
6
+ WORKDIR /app
7
+
8
+ COPY --chown=user ./requirements.txt requirements.txt
9
+
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
+
12
+ COPY --chown=user . /app
13
+
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]