Signed-off-by: chensuyue <suyue.chen@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
26 lines
470 B
Docker
26 lines
470 B
Docker
|
|
# Copyright (C) 2024 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM python:3.11-slim
|
|
|
|
RUN pip install poetry==1.6.1
|
|
|
|
RUN poetry config virtualenvs.create false
|
|
|
|
WORKDIR /code
|
|
|
|
COPY ./pyproject.toml ./README.md ./poetry.lock* ./
|
|
|
|
COPY ./package[s] ./packages
|
|
|
|
RUN poetry install --no-interaction --no-ansi --no-root
|
|
|
|
COPY ./app ./app
|
|
|
|
RUN poetry install --no-interaction --no-ansi
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD exec uvicorn app.server:app --host 0.0.0.0 --port 8080
|