ahsannawazch commited on
Commit
69943f4
·
1 Parent(s): d2d3bcb

Updated docker

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -6
Dockerfile CHANGED
@@ -1,11 +1,23 @@
1
- FROM python:3.12.2
2
 
3
- COPY . /tmp
4
 
5
- WORKDIR /tmp
6
 
7
- RUN pip install -r requirements.txt
8
 
9
- EXPOSE 8000
10
 
11
- CMD ["chainlit", "run", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FROM python:3.12.2
2
 
3
+ # COPY . /tmp
4
 
5
+ # WORKDIR /tmp
6
 
7
+ # RUN pip install -r requirements.txt
8
 
9
+ # EXPOSE 8000
10
 
11
+ # CMD ["chainlit", "run", "app.py"]
12
+
13
+ FROM python:3.9
14
+ RUN useradd -m -u 1000 user
15
+ USER user
16
+ ENV HOME=/home/user \
17
+ PATH=/home/user/.local/bin:$PATH
18
+ WORKDIR $HOME/app
19
+ COPY --chown=user . $HOME/app
20
+ COPY ./requirements.txt ~/app/requirements.txt
21
+ RUN pip install -r requirements.txt
22
+ COPY . .
23
+ CMD ["chainlit", "run", "app.py", "--port", "7860"]