Files
doczyai-pipelines/fieldExtraction/release/Dockerfile
T
Katon Minhas 212f93257a Merged in feature/docker-constants (pull request #766)
Modify Docker

* Modify Docker
2025-11-07 17:43:34 +00:00

31 lines
681 B
Docker

# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.12.7
FROM python:${PYTHON_VERSION}
# 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 \
python -m pip install poetry
WORKDIR /app
COPY pyproject.toml .
COPY poetry.lock .
RUN --mount=type=cache,target=/root/.cache/pip \
poetry install --only main --compile
COPY src/ src/
COPY constants/ constants/
COPY embeddings/ embeddings/
CMD [ "poetry", "run", "python", "src/main.py" ]