diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c005c50 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# Builder stage +FROM python:3.12-slim AS builder +WORKDIR /install +COPY requirements.txt . +RUN pip install --prefix=/install --no-cache-dir -r requirements.txt +WORKDIR /app +COPY src/ /app/ + +# Runtime image +FROM nvcr.io/nvidia/distroless/python:3.12-v4.1.6 +COPY --from=builder /install /usr/local +COPY --from=builder /app /app +WORKDIR /app +ENTRYPOINT ["python", "main.py"]