Media Magic Service Base Docker Image

This is a multipart base Docker image, which ties together everything that's needed in order to create a Dockerised service for the Media Magic platform.

Example Usage

FROM gcr.io/mediamagic-ewanv/base-image as builder

COPY go.mod go.sum ./
RUN go mod tidy && go get ./...

COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o service .

# ---

FROM gcr.io/mediamagic-ewanv/base-image

COPY --from=builder /app/service .

ENTRYPOINT ["./service", "service"]

Last updated