This commit is contained in:
Fred Boniface
2025-12-05 16:30:34 +00:00
commit c6efed07f5
6 changed files with 112 additions and 0 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
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" ]