Files

9 lines
246 B
Docker
Raw Permalink Normal View History

2025-11-09 14:45:22 -05:00
FROM golang:alpine3.22 AS builder
2025-11-09 14:37:14 -05:00
WORKDIR /app
2025-11-09 14:34:34 -05:00
COPY . .
2025-11-09 14:52:34 -05:00
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o go-parser main.go
2025-11-09 14:15:50 -05:00
2025-11-09 14:52:34 -05:00
# FROM golang:alpine3.22
2025-11-09 14:57:58 -05:00
FROM alpine:3.22.2
2025-11-09 14:52:34 -05:00
COPY --from=builder /app/go-parser /go-parser
ENTRYPOINT [ "/go-parser" ]