Some checks failed
Bearer / scan (push) Successful in 40s
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 40s
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 40s
Go Build Multi-Platform / build (arm, linux) (push) Successful in 39s
Go Build Multi-Platform / build (wasm, js) (push) Successful in 49s
Go Build Multi-Platform / build (arm64, windows) (push) Successful in 52s
Go Build Multi-Platform / build (arm64, linux) (push) Successful in 55s
TinyGo Build / tinygo-build (tinygo-build, tinygo-default, reticulum-go-tinygo, ) (pull_request) Failing after 48s
TinyGo Build / tinygo-build (tinygo-wasm, tinygo-wasm, reticulum-go.wasm, wasm) (pull_request) Failing after 49s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m19s
Go Revive Lint / lint (push) Successful in 55s
Run Gosec / tests (push) Successful in 1m41s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 2m26s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 4m47s
Go Build Multi-Platform / build (amd64, darwin) (push) Successful in 9m30s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 9m30s
Go Build Multi-Platform / build (arm, windows) (push) Successful in 9m28s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 9m30s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 9m28s
Go Build Multi-Platform / Create Release (push) Has been skipped
40 lines
747 B
Docker
40 lines
747 B
Docker
ARG GO_VERSION=1.25
|
|
FROM golang:${GO_VERSION}-alpine AS builder
|
|
|
|
ENV CGO_ENABLED=0
|
|
ENV GOOS=linux
|
|
ENV GOARCH=amd64
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
WORKDIR /build
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY cmd/ cmd/
|
|
COPY internal/ internal/
|
|
COPY pkg/ pkg/
|
|
|
|
RUN go build \
|
|
-ldflags='-w -s -extldflags "-static"' \
|
|
-a -installsuffix cgo \
|
|
-o reticulum-go \
|
|
./cmd/reticulum-go
|
|
|
|
FROM busybox:1.37.0@sha256:870e815c3a50dd0f6b40efddb319c72c32c3ee340b5a3e8945904232ccd12f44
|
|
|
|
RUN adduser -D -s /bin/sh app
|
|
|
|
COPY --from=builder /build/reticulum-go /usr/local/bin/reticulum-go
|
|
|
|
RUN chmod +x /usr/local/bin/reticulum-go
|
|
RUN mkdir -p /app && chown app:app /app
|
|
|
|
USER app
|
|
WORKDIR /app
|
|
|
|
EXPOSE 4242
|
|
|
|
ENTRYPOINT ["/usr/local/bin/reticulum-go"]
|