mirror of
https://github.com/paralus/paralus.git
synced 2026-05-07 08:56:42 +00:00
15 lines
337 B
Docker
15 lines
337 B
Docker
FROM golang:1.17 as build
|
|
LABEL description="Build container"
|
|
|
|
ENV CGO_ENABLED 0
|
|
COPY . /build
|
|
WORKDIR /build
|
|
RUN go build -o start-sync scripts/kratos/providers_sync.go
|
|
|
|
FROM alpine:latest as runtime
|
|
LABEL description="Run container"
|
|
|
|
WORKDIR /usr/bin
|
|
COPY --from=build /build/start-sync /usr/bin/start-sync
|
|
ENTRYPOINT ["./start-sync"]
|