Esvanth commited on
Commit
7d675ba
·
verified ·
1 Parent(s): c14f1cd

Add Dockerfile

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