Thomas E Lackey
ca305d2642
Some checks failed
Run Gosec / Gosec (pull_request) Failing after 54s
Build / cleanup-runs (pull_request) Successful in 10s
Build / build (pull_request) Failing after 1m10s
Dependency Review / dependency-review (pull_request) Failing after 1m8s
Deploy Contract / cleanup-runs (pull_request) Successful in 6s
Pull Request Labeler / triage (pull_request) Failing after 7s
Deploy Contract / deploy (pull_request) Failing after 39s
CodeQL / Analyze (go) (pull_request) Failing after 3m8s
Lint / Run golangci-lint (pull_request) Failing after 56s
Semgrep / Scan (pull_request) Failing after 27s
Tests / cleanup-runs (pull_request) Successful in 9s
Lint / Run flake8 on python integration tests (pull_request) Failing after 1m39s
Tests / test-rpc (pull_request) Failing after 33s
Tests / test-importer (pull_request) Failing after 1m9s
Tests / test-unit-cover (pull_request) Failing after 1m16s
Tests / sdk_tests (pull_request) Failing after 16m55s
31 lines
606 B
Docker
31 lines
606 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/github.com/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
|
|
|
|
# Copy over binaries from the build-env
|
|
COPY --from=build-env /go/src/github.com/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
|
|
|
|
WORKDIR /
|
|
# Run laconicd by default
|
|
CMD ["laconicd"]
|