Initial commit
This commit is contained in:
commit
85d261e987
18 files changed
+709
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
# 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.2.0
|
||||
COPY --from=builder /install /usr/local
|
||||
COPY --from=builder /app /app
|
||||
WORKDIR /app
|
||||
|
||||
ARG COMMIT_ID=unknown
|
||||
ENV COMMIT_ID=$COMMIT_ID
|
||||
|
||||
ENTRYPOINT ["python", "main.py"]
|
||||
|
||||
Reference in new issue
Block a user