fix pip env error

This commit is contained in:
simon 2022-06-01 18:12:16 +07:00
parent 15b88a2c21
commit 4158bae090
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@ RUN apt-get clean && apt-get -y update && \
python3-dev libpq-dev build-essential \
vim htop bmon net-tools iputils-ping procps
ENV PATH=/root/.local/bin:$PATH
COPY requirements.txt /requirements.txt
RUN pip install --upgrade pip setuptools && \
pip install --no-cache-dir -r /requirements.txt --src /usr/local/src
RUN pip install --user -r requirements.txt
RUN mkdir /data