-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds Dockerfile to repo with README updates Signed-off-by: Jordan Rash <[email protected]>
- Loading branch information
1 parent
7116413
commit cd9a196
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM golang AS nexbuilder | ||
WORKDIR /nex | ||
COPY go.mod ./ | ||
RUN go mod download | ||
COPY . . | ||
RUN go build -o nexcli ./nex | ||
|
||
FROM golang AS agentbuilder | ||
WORKDIR /agent | ||
COPY go.mod ./ | ||
RUN go mod download | ||
COPY . . | ||
RUN go build -o nexagent ./agent/cmd/nex-agent | ||
|
||
FROM debian:12-slim | ||
RUN apt-get update \ | ||
&& apt-get install -y ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
WORKDIR / | ||
COPY --from=nexbuilder /nex/nexcli /usr/local/bin/nex | ||
COPY --from=agentbuilder /agent/nexagent /usr/local/bin/nex-agent | ||
ENTRYPOINT ["nex"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters