modify Dockerfile with copy requirements.txt line v5
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -3,9 +3,9 @@ RUN useradd -m -u 1000 user
|
|
3 |
USER user
|
4 |
ENV HOME=/home/user \
|
5 |
PATH=/home/user/.local/bin:$PATH
|
6 |
-
WORKDIR
|
7 |
COPY --chown=user . $HOME/app
|
8 |
-
COPY ./requirements.txt
|
9 |
-
RUN pip install -r requirements.txt
|
10 |
COPY . .
|
11 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
3 |
USER user
|
4 |
ENV HOME=/home/user \
|
5 |
PATH=/home/user/.local/bin:$PATH
|
6 |
+
WORKDIR /app
|
7 |
COPY --chown=user . $HOME/app
|
8 |
+
COPY ./requirements.txt /app/requirements.txt
|
9 |
+
RUN pip install -r /app/requirements.txt
|
10 |
COPY . .
|
11 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|