mirror of
https://github.com/paralus/paralus.git
synced 2026-05-06 08:26:53 +00:00
* Add DB_ADDR to env vars list * Add Dockerfile and docker-compose * Remove go.mod from _kratos dir and clean go.mod of root dir * Run Kratos docker-compose quickstart from root dir * Add gomigrate to docker-compose * Bump docker-composen version to 3.7 * Add Kratos services in the single docker compose file Removed Kratos quickstart files and merge all setup required for rcloud-base in the kratos-compose.yml file located in the root of the repo. * Add elasticsearch in docker-compose * Allow es to not be available in when in dev mode * Change default ES endpoint Co-authored-by: Abin Simon <abin.simon@rafay.co>
18 lines
345 B
Docker
18 lines
345 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/RafaySystems/rcloud-base
|
|
|
|
FROM alpine:latest as runtime
|
|
LABEL description="Run container"
|
|
|
|
COPY --from=build /build/rcloud-base /usr/bin/rcloud-base
|
|
WORKDIR /usr/bin
|
|
CMD ./rcloud-base
|
|
|
|
EXPOSE 10000
|
|
EXPOSE 11000
|