Hivra commited on
Commit
75f71e5
1 Parent(s): 6c12539

Create Dockerfile

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