Add pip upgrade command

Add pip upgrade command to avoid getting error while docker-compose build phase.
This commit is contained in:
Kaan Özdinçer
2021-10-21 13:18:23 +03:00
committed by GitHub
parent 262ae35072
commit 8a9b092134

View File

@@ -3,6 +3,7 @@ ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
RUN mkdir -p /fastapi-admin
WORKDIR /fastapi-admin
COPY pyproject.toml poetry.lock /fastapi-admin/
RUN pip install --upgrade pip
RUN pip3 install poetry
ENV POETRY_VIRTUALENVS_CREATE false
RUN poetry install --no-root