Prathamesh Musale
84c21e0ab7
All checks were successful
Build / build (pull_request) Successful in 2m30s
Integration Tests / test-integration (pull_request) Successful in 2m46s
E2E Tests / test-e2e (pull_request) Successful in 4m4s
Lint / Run golangci-lint (pull_request) Successful in 5m59s
Unit Tests / test-unit (pull_request) Successful in 1m52s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 7m41s
SDK Tests / sdk_tests (pull_request) Successful in 8m20s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 13m13s
32 lines
612 B
Docker
32 lines
612 B
Docker
FROM golang:alpine AS build-env
|
|
|
|
# Install dependencies
|
|
RUN apk add --update git build-base linux-headers
|
|
|
|
# Set working directory for the build
|
|
WORKDIR /go/src/git.vdb.to/cerc-io/laconicd
|
|
|
|
# Cache Go modules
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
# Add source files
|
|
COPY . .
|
|
|
|
# Make the binary
|
|
RUN make build
|
|
|
|
# Final image
|
|
FROM alpine:3.17.0
|
|
|
|
# Install ca-certificates
|
|
RUN apk add --update ca-certificates jq curl bash
|
|
|
|
# Copy over binaries from the build-env
|
|
COPY --from=build-env /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
|
|
|
|
WORKDIR /
|
|
|
|
# Run laconicd by default
|
|
CMD ["laconicd"]
|