Mohamed41 commited on
Commit
8e2327a
·
1 Parent(s): f341a80

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+ WORKDIR /code
3
+
4
+ COPY requirements.txt .
5
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
6
+
7
+ #RUN pip install transformers==4.6.1
8
+ RUN useradd -m -u 1000 user
9
+ USER user
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ WORKDIR $HOME/app
14
+
15
+ COPY --chown=user . $HOME/app
16
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]