Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -5
Dockerfile
CHANGED
@@ -2,10 +2,13 @@ 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:$PATH
|
6 |
WORKDIR $HOME/app
|
7 |
-
|
8 |
-
COPY
|
9 |
-
RUN pip install
|
10 |
-
|
|
|
|
|
|
|
11 |
CMD ["python", "-m", "chainlit", "run", "app.py", "--port", "7860", "--host", "0.0.0.0", "-h"]
|
|
|
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"]
|