fibonacci_pipeline/Dockerfile

16 lines
294 B
Docker

FROM golang:latest AS builder
WORKDIR /shared-data/app
COPY ./ ./
# RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o fibonacci_go .
FROM alpine:latest
WORKDIR /shared-data/app
COPY --from=builder /shared-data/app/fibonacci_go .
ENTRYPOINT [ "/shared-data/app/fibonacci_go" ]