github.com/renbou/grpcbridge@v0.0.2-0.20240416012907-bcbd8b12648a/examples/pytestapi/Dockerfile (about)

     1  FROM python:3.12.2-alpine3.19
     2  
     3  ENV \
     4    PYTHONUNBUFFERED=1 \
     5    PIP_DISABLE_PIP_VERSION_CHECK=on \
     6    PIP_DEFAULT_TIMEOUT=100 \
     7    POETRY_VIRTUALENVS_CREATE=false
     8  WORKDIR /pytestapi
     9  
    10  RUN \
    11    --mount=type=cache,target=/root/.cache/pip \
    12    pip install -U pip setuptools && \
    13    pip install poetry==1.8.2
    14  
    15  COPY pyproject.toml poetry.lock .
    16  COPY pytestapi ./pytestapi
    17  COPY scripts ./scripts
    18  RUN \
    19    --mount=type=cache,target=/root/.cache/pip \
    20    --mount=type=cache,target=/root/.cache/pypoetry \
    21    poetry install --no-interaction --no-ansi
    22  
    23  CMD ["poetry", "run", "--quiet", "pytestapi-server"]