Sujal Bhat commited on
Commit
8483bbb
1 Parent(s): 8ae9313

dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -13
Dockerfile CHANGED
@@ -1,18 +1,10 @@
1
- FROM python:3.9
2
 
3
- RUN useradd -m -u 1000 user
4
- USER user
5
- ENV HOME=/home/user \
6
- PATH=/home/user/.local/bin:$PATH
7
 
8
- WORKDIR $HOME/app
 
9
 
10
- COPY --chown=user . $HOME/app
11
- COPY --chown=user ./requirements.txt $HOME/app/requirements.txt
12
-
13
- RUN pip install --user --upgrade pip setuptools wheel
14
- RUN pip install --user --no-cache-dir -r requirements.txt
15
-
16
- COPY --chown=user . .
17
 
18
  CMD ["chainlit", "run", "chainlit_app.py", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10-slim
2
 
3
+ WORKDIR /app
 
 
 
4
 
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY . .
 
 
 
 
 
 
9
 
10
  CMD ["chainlit", "run", "chainlit_app.py", "--host", "0.0.0.0", "--port", "7860"]