previdengue commited on
Commit
4ce55ad
·
verified ·
1 Parent(s): a00f034

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13.3
2
+
3
+ RUN useradd -m -u 1000 user
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ python3 \
7
+ python3-pip \
8
+ libgl1
9
+
10
+ USER user
11
+ ENV PATH="/home/user/.local/bin:$PATH"
12
+
13
+ COPY . /app
14
+
15
+ WORKDIR /app
16
+
17
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
+
19
+ COPY --chown=user . /app
20
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]