andreasmartin commited on
Commit
b5bb6f1
·
1 Parent(s): 48c9d4e

deepnote update

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,11 +1,5 @@
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
@@ -13,9 +7,15 @@ USER user
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"]
 
1
  FROM python:3.10
2
 
 
 
 
 
 
 
3
  RUN useradd -m -u 1000 user
4
 
5
  USER user
 
7
  ENV HOME=/home/user \
8
  PATH=/home/user/.local/bin:$PATH \
9
  PYTHONPATH=$HOME/app \
10
+
11
  WORKDIR $HOME/app
12
 
13
  COPY --chown=user . $HOME/app
14
 
15
+ COPY ./requirements.txt ~/app/requirements.txt
16
+
17
+ RUN pip install -r requirements.txt
18
+
19
+ COPY . .
20
+
21
  CMD ["chainlit", "run", "app.py", "--port", "7860", "--no-cache"]