laconicd/Dockerfile
Prathamesh Musale 66df959d51
All checks were successful
Integration Tests / test-integration (push) Successful in 2m16s
E2E Tests / test-e2e (push) Successful in 3m21s
Lint / Run golangci-lint (push) Successful in 5m3s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 6m50s
Unit Tests / test-unit (push) Successful in 1m46s
SDK Tests / sdk_tests (push) Successful in 7m51s
SDK Tests / sdk_tests_auctions (push) Successful in 12m32s
Changes required for laconicd testnet stack (#29)
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8)

Reviewed-on: cerc-io/laconic2d#29
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-06-19 12:09:49 +00:00

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"]