Files
fastapi-admin/Dockerfile
Kaan Özdinçer 8a9b092134 Add pip upgrade command
Add pip upgrade command to avoid getting error while docker-compose build phase.
2021-10-21 13:18:23 +03:00

13 lines
337 B
Docker

FROM jfloff/alpine-python
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
COPY . /fastapi-admin
RUN poetry install
RUN make compile