This commit is contained in:
2025-11-09 14:45:22 -05:00
parent 7e913d68ae
commit f399fcc2a2

View File

@@ -1,19 +1,8 @@
FROM golang:1.23-bookworm 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 parser main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o parser main.go
FROM alpine:3.22
FROM golang:alpine3.22
COPY --from=builder /app/parser /run/parser
ENTRYPOINT [ "/run/parser" ]
# FROM golang:alpine3.22 AS builder
# WORKDIR /app
# COPY . .
# RUN go mod download && \
# CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o parser main.go
# FROM golang:alpine3.22
# COPY --from=builder /app/parser /run/parser
# ENTRYPOINT [ "/run/parser" ]