Files
paralus/Dockerfile
Akshay Gaikwad 5c5320b4f0 Update Dockerfile.initialize
Instead of pulling separate images kratos and migrate for migrations,
combined migration in init image only.
2022-06-14 12:22:24 +05:30

24 lines
383 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 scratch 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