Files
fastapi-admin/Dockerfile
2021-04-28 23:44:04 +08:00

10 lines
259 B
Docker

FROM python:3
RUN mkdir -p /fastapi-admin
WORKDIR /fastapi-admin
COPY pyproject.toml poetry.lock /fastapi-admin/
RUN pip3 install poetry
ENV POETRY_VIRTUALENVS_CREATE false
RUN poetry install --no-root
COPY . /fastapi-admin
RUN poetry install
RUN make compile