Spaces:
Runtime error
Runtime error
Commit
·
c0c28bf
1
Parent(s):
3ce72eb
update venv
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -5,15 +5,17 @@ FROM python:3.10
|
|
5 |
|
6 |
WORKDIR /code
|
7 |
|
8 |
-
ENV PIP_TARGET=/home/user/app/pip
|
9 |
-
ENV PYTHONPATH=${PYTHONPATH}:${PIP_TARGET}
|
|
|
|
|
|
|
|
|
10 |
COPY ./requirements.txt /code/requirements.txt
|
11 |
|
12 |
RUN pip install --no-cache-dir --upgrade pip
|
13 |
|
14 |
-
RUN pip install --no-cache-dir
|
15 |
-
|
16 |
-
RUN pip install --no-cache-dir --user lit
|
17 |
|
18 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
19 |
|
|
|
5 |
|
6 |
WORKDIR /code
|
7 |
|
8 |
+
# ENV PIP_TARGET=/home/user/app/pip
|
9 |
+
# ENV PYTHONPATH=${PYTHONPATH}:${PIP_TARGET}
|
10 |
+
|
11 |
+
RUN python -m venv /app/venv
|
12 |
+
ENV PATH="/app/venv/bin:$PATH"
|
13 |
+
|
14 |
COPY ./requirements.txt /code/requirements.txt
|
15 |
|
16 |
RUN pip install --no-cache-dir --upgrade pip
|
17 |
|
18 |
+
RUN pip install --no-cache-dir lit
|
|
|
|
|
19 |
|
20 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
21 |
|