nabarun
5e7d5fc47c
All checks were successful
Integration Tests / test-integration (push) Successful in 3m10s
E2E Tests / test-e2e (push) Successful in 3m55s
Unit Tests / test-unit (push) Successful in 2m1s
SDK Tests / sdk_tests (push) Successful in 10m27s
SDK Tests / sdk_tests_auctions (push) Successful in 14m19s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 7m13s
Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675) Co-authored-by: Adw8 <adwaitgharpure@gmail.com> Reviewed-on: #47
35 lines
809 B
Docker
35 lines
809 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 \
|
|
&& 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"]
|