laconicd-deprecated/Dockerfile
Roy Crihfield 61fe74ca3b build cleanup
docker ignore

dockerfile cleanup

clean up init script

forward LOGLEVEL
2023-09-21 19:30:02 +08:00

27 lines
551 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
# 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
ENTRYPOINT ["laconicd"]