ifw-arz commited on
Commit
64fdaee
1 Parent(s): 2a904aa

Create Dockerfile

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