############################################################################### # Base image for all others to build upon. # # If you change the version here, update pyproject.toml and the version used in # CI. FROM registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/python:3.11-slim AS base # Some performance and disk-usage optimisations for Python within a docker container. ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 WORKDIR /usr/lib # Pretty much everything from here on needs poetry. RUN pip install --no-cache-dir poetry COPY pyproject.toml poetry.lock README.md ./ COPY ucam_faas ./ucam_faas RUN poetry config virtualenvs.create false && \ poetry install --without=dev WORKDIR /usr/src/app ENTRYPOINT ["ucam-faas", "--target"]