forked from kai-scheduler/KAI-Scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 808 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2025 NVIDIA CORPORATION
# SPDX-License-Identifier: Apache-2.0
FROM golang:1.22 AS debug
ARG TARGETARCH
ARG SERVICE_NAME
ENV TARGETARCH=$TARGETARCH
ENV SERVICE_NAME=$SERVICE_NAME
RUN go install github.com/go-delve/delve/cmd/dlv@latest
WORKDIR /workspace
ADD bin/$SERVICE_NAME-$TARGETARCH app
RUN chgrp -R 0 /workspace && chmod -R g=u /workspace
USER 65532:65532
ENTRYPOINT ["/go/bin/dlv", "exec", "--headless", "-l", ":10000", "--api-version=2", "/workspace/app", "--"]
FROM registry.access.redhat.com/ubi9/ubi-minimal AS prod
ARG TARGETARCH
ARG SERVICE_NAME
ENV TARGETARCH=$TARGETARCH
ENV SERVICE_NAME=$SERVICE_NAME
WORKDIR /workspace
ADD bin/$SERVICE_NAME-$TARGETARCH app
ADD NOTICE .
RUN chgrp -R 0 /workspace && chmod -R g=u /workspace
USER 65532:65532
ENTRYPOINT ["/workspace/app"]