ashwml commited on
Commit
81935e9
1 Parent(s): 46b9a5a

Upload Dockerfile (1)

Browse files
Files changed (1) hide show
  1. Dockerfile (1) +23 -0
Dockerfile (1) ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # pull python base image
2
+ FROM python:3.10
3
+
4
+ COPY requirements.txt requirements.txt
5
+
6
+ # update pip
7
+ RUN pip install --upgrade pip
8
+
9
+ # install dependencies
10
+ RUN pip install -r requirements.txt
11
+
12
+ RUN useradd -m -u 1000 myuser
13
+
14
+ USER myuser
15
+
16
+ # copy application files
17
+ COPY --chown=myuser . .
18
+
19
+ # expose port for application
20
+ EXPOSE 8001
21
+
22
+ # start fastapi application
23
+ CMD ["python", "app.py"]