Skip to content

Commit

Permalink
create base and configurable image for nucleus
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed May 27, 2024
1 parent d6f4c54 commit 0cadc19
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Compilation
FROM docker.io/library/golang:1.21-alpine AS nucleus-builder
WORKDIR /src/src/nucleus
COPY go.mod go.sum* ./
RUN go mod download
COPY . .
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3
RUN apk add --no-cache $PACKAGES
RUN CGO_ENABLED=0 make install

# Runtime
FROM docker.io/chainguard/static:latest
COPY --from=nucleus-builder /go/bin/nucleusd /usr/local/bin/
USER 0

ENTRYPOINT ["nucleusd", "start"]

0 comments on commit 0cadc19

Please sign in to comment.