FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Dockerfile 768 B
Newer Older
###############################################################################
# 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

E. Kirk's avatar
E. Kirk committed
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

E. Kirk's avatar
E. Kirk committed
WORKDIR /usr/src/app

ENTRYPOINT ["ucam-faas", "--target"]