This repository has been archived on 2025-12-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
garm-test-pipeline/Dockerfile

18 lines
317 B
Text
Raw Normal View History

FROM golang:1.23.2 AS builder
2024-12-16 11:49:51 +01:00
WORKDIR /app
COPY ./ ./
# RUN go mod download
2024-12-16 11:49:51 +01:00
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
2024-12-16 11:49:51 +01:00
WORKDIR /app
2024-12-16 11:49:51 +01:00
COPY --from=builder /app/fibonacci-go .
2024-12-16 11:49:51 +01:00
ENTRYPOINT [ "/app/fibonacci-go" ]