Files
doczyai-pipelines/release/Dockerfile
T
Sha Brown 6efb281d4b Merged in bugfix/release_dockerfile (pull request #862)
Updated dockerfile to use uv instead of poetry

* Updated dockerfile to use uv instead of poetry


Approved-by: Katon Minhas
2026-02-02 20:48:22 +00:00

27 lines
607 B
Docker

# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.12
FROM public.ecr.aws/lambda/python:${PYTHON_VERSION} AS build
# Prevents Python from writing pyc files.
ENV PYTHONDONTWRITEBYTECODE=1
# Keeps Python from buffering stdout and stderr to avoid situations where
# the application crashes without emitting any logs due to buffering.
ENV PYTHONUNBUFFERED=1
RUN --mount=type=cache,target=/root/.cache/pip \
pip install uv
WORKDIR /app
COPY pyproject.toml .
COPY uv.lock .
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen
COPY . ${LAMBDA_TASK_ROOT}
CMD [ "index.lambda_handler" ]