pavan1221 commited on
Commit
323e2c2
·
verified ·
1 Parent(s): 0f9941a

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN useradd -m -u 1000 appuser
4
+
5
+ WORKDIR /app
6
+
7
+ RUN apt-get update && apt-get install -y \
8
+ fonts-dejavu-core \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ COPY --chown=appuser:appuser . .
15
+
16
+ USER 1000
17
+
18
+ EXPOSE 7860
19
+
20
+ CMD ["python", "-u", "app.py"]