jzyg123 commited on
Commit
da61d54
·
verified ·
1 Parent(s): 6bb7e78

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ WORKDIR /home/user/app
6
+
7
+ COPY --chown=user requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ COPY --chown=user . .
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]