Files
compose-parser/Dockerfile
2025-11-09 14:39:24 -05:00

10 lines
312 B
Docker

# FROM registry.jakeyoungdev.com/go/alpine:1.25.3 AS builder
FROM golang:alpine3.22 AS builder
WORKDIR /app
COPY . .
RUN go mod download && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /app/parser main.go
FROM golang:alpine3.22
COPY --from=builder /app/parser /run/parser
ENTRYPOINT [ "/run/parser" ]