sgawtho commited on
Commit
8a7e952
1 Parent(s): 95856a9

added dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -1,6 +1,11 @@
1
  FROM python:3.9
2
- WORKDIR /code
3
- COPY ./requirements.txt /code/requirements.txt
4
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
 
5
  COPY . .
6
- CMD ["unicorn", "app.main:app", "--host", "o.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
+ RUN useradd -m -u 1000 user
3
+ USER user
4
+ ENV HOME=/home/user \
5
+ PATH=/home/user/.local/bin:$PATH
6
+ WORKDIR $HOME/app
7
+ COPY --chown=user . $HOME/app
8
+ COPY ./requirements.txt ~/app/requirements.txt
9
+ RUN pip install -r requirements.txt
10
  COPY . .
11
+ CMD ["chainlit", "run", "app.py", "--port", "7860"]