Omkar008 commited on
Commit
5ae6f31
·
verified ·
1 Parent(s): f33b9c0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12.5
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+
6
+ WORKDIR /app
7
+
8
+ COPY --chown=user ./requirements.txt requirements.txt
9
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
+
11
+ COPY --chown=user . /app
12
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]