Files
echoreq/Dockerfile
Fred Boniface c6efed07f5 Initial
2025-12-05 16:30:34 +00:00

10 lines
239 B
Docker

FROM golang:1.24-alpine AS builder
WORKDIR /app
COPY src/main.go .
RUN CGO_ENABLED=0 GOOS=linux go build -o echo-server main.go
FROM scratch
WORKDIR /app
COPY --from=builder /app/echo-server .
EXPOSE 8080
ENTRYPOINT [ "/app/echo-server" ]