Spaces:
Runtime error
Runtime error
andreasmartin
commited on
Commit
•
a8802e2
1
Parent(s):
0df72d8
deepnote update
Browse files- Dockerfile +9 -8
Dockerfile
CHANGED
@@ -1,20 +1,21 @@
|
|
1 |
FROM python:3.10
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
RUN useradd -m -u 1000 user
|
4 |
|
5 |
USER user
|
6 |
|
7 |
ENV HOME=/home/user \
|
8 |
-
|
9 |
-
|
|
|
10 |
WORKDIR $HOME/app
|
11 |
|
12 |
COPY --chown=user . $HOME/app
|
13 |
|
14 |
-
COPY ./requirements.txt ~/app/requirements.txt
|
15 |
-
|
16 |
-
RUN pip install -r requirements.txt
|
17 |
-
|
18 |
-
COPY . .
|
19 |
-
|
20 |
CMD ["chainlit", "run", "app.py", "--port", "7860", "--no-cache"]
|
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
+
|
9 |
RUN useradd -m -u 1000 user
|
10 |
|
11 |
USER user
|
12 |
|
13 |
ENV HOME=/home/user \
|
14 |
+
PATH=/home/user/.local/bin:$PATH \
|
15 |
+
PYTHONPATH=$HOME/app
|
16 |
+
|
17 |
WORKDIR $HOME/app
|
18 |
|
19 |
COPY --chown=user . $HOME/app
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
CMD ["chainlit", "run", "app.py", "--port", "7860", "--no-cache"]
|