GVAmaresh commited on
Commit
fa4b3ec
·
1 Parent(s): 62be257

dev: init project

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -4
Dockerfile CHANGED
@@ -1,9 +1,16 @@
1
  FROM python:3.11.9
2
 
3
- COPY . .
4
 
5
- WORKDIR /
 
 
 
6
 
7
- RUN pip install --upgrade -r /requirements.txt
8
 
9
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "1200"]
 
 
 
 
 
1
  FROM python:3.11.9
2
 
3
+ FROM python:3.10-slim
4
 
5
+ RUN useradd user
6
+ USER user
7
+ ENV HOME=/home/user \
8
+ PATH=/home/user/.local/bin:$PATH
9
 
10
+ WORKDIR $HOME/app
11
 
12
+ COPY --chown=user ./ $HOME/app
13
+
14
+ RUN pip install -r requirements.txt
15
+
16
+ CMD fastapi run --reload --host=0.0.0.0 --port=7860