suryansh1241 commited on
Commit
fd297c4
·
1 Parent(s): 21fff8b

Create Dockerfile for server side script

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ WORKDIR /code
4
+
5
+ USER root
6
+
7
+ COPY ./requirements.txt /code/requirements.txt
8
+
9
+ ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
10
+
11
+ RUN /install.sh && rm /install.sh
12
+
13
+ RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
14
+
15
+ COPY . /code
16
+
17
+ USER user
18
+
19
+ # CMD ["python", "main.py"]
20
+ # CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:get_repos()"]
21
+ # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
22
+ CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]