mirror of
https://github.com/paralus/paralus.git
synced 2026-05-06 00:17:19 +00:00
24 lines
522 B
Docker
24 lines
522 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 go build github.com/RafayLabs/rcloud-base
|
|
|
|
FROM alpine:latest as runtime
|
|
LABEL description="Run container"
|
|
|
|
COPY --from=build /build/rcloud-base /usr/bin/rcloud-base
|
|
WORKDIR /usr/bin
|
|
# Copying data for running migrations
|
|
# TODO: Support rcloud-base binary to run migrations
|
|
COPY ./persistence/migrations/admindb /data/migrations/admindb
|
|
|
|
EXPOSE 10000
|
|
EXPOSE 11000
|