Files
controlla/Dockerfile
T
victor.kolomin 63bf473fde
continuous-integration/drone/tag Build is passing
add config-file flag
2025-09-18 20:28:42 +02:00

20 lines
502 B
Docker

FROM public.ecr.aws/docker/library/golang:1.25.1-alpine3.22 AS builder
WORKDIR /app
COPY . .
# Binary compilation
RUN go build -o controlla .
# Final minimal image
FROM public.ecr.aws/docker/library/alpine:3.22.1
WORKDIR /app
# Copy the binary and config file from the builder stage
COPY --from=builder /app/controlla /app/
COPY data/config.yaml /app/data/config.yaml
# Install bash for potential scripting needs
RUN apk add --no-cache bash
CMD ["./controlla --config-file /app/data/config.yaml"]