fibonacci_http_go/Dockerfile
cihe 04d831a2c5 Prototype
Fibonacci Go App, accessible using HTTP
2024-12-03 09:20:58 +01:00

17 lines
365 B
Docker

FROM golang:1.23.2 AS builder
WORKDIR /shared-data/app
COPY ./ ./
# RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o fibonacci_go cmd/main.go
# ToDo: use stretch as image for a completly empty container
FROM alpine:3.20.3
WORKDIR /shared-data/app
COPY --from=builder /shared-data/app/fibonacci_go .
ENTRYPOINT [ "/shared-data/app/fibonacci_go" ]