mwitiderrick commited on
Commit
f14ac03
·
verified ·
1 Parent(s): 980422e

Update Dockerfile

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