# Tags are v<version>; one image per engine (continuo-python-runtime-postgres / -trino).
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.3.1
COPY contracts/ /app/contracts/
COPY scripts/ /app/scripts/
# COPY every OTHER directory your scripts import from, too. CI folds a script's
# transitive in-repo import closure into shared_code_hash, so a helper module in
# e.g. lib/ or common/ is hashed whether or not it is in the image — a helper
# left out here produces a valid release artifact and a node that dies with
# ModuleNotFoundError on its first run. Add one line per such directory, e.g.:
# COPY lib/ /app/lib/
# Add your dataframe libraries here. This image's base runs as non-root
# (uid 65532), which pip cannot install under, so switch to root for the
# install and switch back — the executor's pod spec expects uid 65532:
# USER root
# RUN pip install --no-cache-dir polars==1.34.0
# USER 65532:65532
