SakibAhmed commited on
Commit
127e2ad
·
verified ·
1 Parent(s): c1b4ab5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -20
Dockerfile CHANGED
@@ -1,20 +1,19 @@
1
- # Dockerfile
2
- FROM python:3.11
3
-
4
- WORKDIR /app
5
-
6
- COPY requirements.txt .
7
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
-
9
- COPY . .
10
-
11
- RUN useradd -m -u 1000 user
12
- USER user
13
-
14
- ENV HOME=/home/user \
15
- PATH=/home/user/.local/bin:$PATH
16
-
17
- EXPOSE 7860
18
-
19
- # Run both Flask and agent using supervisord or similar
20
- CMD python -m flask run --host=0.0.0.0 --port=7860 & python app.py
 
1
+ # Dockerfile
2
+ FROM python:3.11
3
+
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
+
9
+ COPY . .
10
+
11
+ RUN useradd -m -u 1000 user
12
+ USER user
13
+
14
+ ENV HOME=/home/user \
15
+ PATH=/home/user/.local/bin:$PATH
16
+
17
+ EXPOSE 7860
18
+
19
+ CMD ["python", "server.py"]