Akshitha1 commited on
Commit
15ff670
·
verified ·
1 Parent(s): 23be336

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Create non-root user
4
+ RUN useradd -m -u 1000 user
5
+ USER user
6
+
7
+ # Set workdir and copy files
8
+ WORKDIR /app
9
+ COPY --chown=user requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+ COPY --chown=user . .
12
+
13
+ # Expose the Flask default port
14
+ EXPOSE 7860
15
+
16
+ # Run the Flask app
17
+ CMD ["python", "app.py"]