CV_parser / Dockerfile
vietlethe's picture
Initialize CV Parser project with FastAPI, Docker support, and document parsing capabilities
716138f
raw
history blame contribute delete
560 Bytes
FROM python:3.12-slim-bookworm
# The installer requires curl (and certificates) to download the release archive
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates libreoffice libreoffice-java-common
# Download the latest installer
ADD https://astral.sh/uv/install.sh /uv-installer.sh
# Run the installer then remove it
RUN sh /uv-installer.sh && rm /uv-installer.sh
# Ensure the installed binary is on the `PATH`
ENV PATH="/root/.local/bin/:$PATH"
ADD . /app
WORKDIR /app
RUN uv sync --frozen
CMD ["uv", "run", "api.py"]