mirror of
https://github.com/paralus/paralus.git
synced 2026-05-07 00:46:52 +00:00
The copied migration files are used to run admindb migration. This is not the best solution however could be used as workaround till we support running migrations using go binary itself.
20 lines
478 B
Docker
20 lines
478 B
Docker
FROM golang:1.17 as build
|
|
LABEL description="Build container"
|
|
|
|
ENV CGO_ENABLED 0
|
|
COPY . /build
|
|
WORKDIR /build
|
|
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
|