asv7j commited on
Commit
29149f6
·
verified ·
1 Parent(s): 0031f12

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+ RUN useradd -m -u 1000 user
3
+ USER user
4
+ ENV PATH="/home/user/.local/bin:$PATH"
5
+ WORKDIR /app
6
+
7
+ RUN pip install fastapi uvicorn[standard]==0.17.* transformers torch accelerate
8
+
9
+ COPY --chown=user . /app
10
+
11
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]