18 lines
273 B
Docker
18 lines
273 B
Docker
FROM golang:1.25-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
# Modules layer
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
# Build layer
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o /parser .
|
|
|
|
FROM alpine:latest AS run
|
|
|
|
COPY --from=build /parser /parser
|
|
|
|
CMD ["/parser"]
|