Prathamesh Musale
6f75370b17
All checks were successful
Integration Tests / test-integration (push) Successful in 2m0s
E2E Tests / test-e2e (push) Successful in 3m26s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 7m19s
SDK Tests / sdk_tests_authority_auctions (push) Successful in 13m22s
Unit Tests / test-unit (push) Successful in 1m52s
SDK Tests / sdk_tests (push) Successful in 19m16s
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8) - Add `bc` installation in Dockerfile (required for stage1 to stage2 testnet migration) - Populate attributes map index when importing records from genesis to allow fetching records with filters from a chain with imported state Reviewed-on: #60 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
35 lines
812 B
Docker
35 lines
812 B
Docker
FROM golang:1.21-bullseye AS builder
|
|
|
|
# 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 ubuntu:22.04
|
|
|
|
# Install ca-certificates, jq, curl, bash, and other necessary packages
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
jq curl netcat bash bc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy over binary from the builder
|
|
COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
|
|
|
|
# Copy over init script from builder
|
|
COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/scripts/init.sh scripts/init.sh
|
|
|
|
WORKDIR /
|
|
|
|
# Run laconicd by default
|
|
CMD ["laconicd"]
|