mirror of
https://github.com/paralus/paralus.git
synced 2026-02-14 17:49:51 +00:00
24 lines
389 B
Docker
24 lines
389 B
Docker
FROM golang:1.17 as build
|
|
LABEL description="Build container"
|
|
|
|
ENV CGO_ENABLED 0
|
|
WORKDIR /build
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN make build
|
|
|
|
FROM alpine:latest as runtime
|
|
LABEL description="Run container"
|
|
|
|
WORKDIR /usr/bin
|
|
COPY --from=build /build/paralus /usr/bin/paralus
|
|
|
|
# RPC port
|
|
EXPOSE 10000
|
|
# RPC relay peering port
|
|
EXPOSE 10001
|
|
# HTTP port
|
|
EXPOSE 11000
|