task-processor/Dockerfile

24 lines
303 B
Text
Raw Permalink Normal View History

2025-10-02 20:35:53 +03:00
FROM golang:1.25.1-alpine3.22 AS builder
WORKDIR /build
COPY go.* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o app ./cmd
FROM alpine:latest
RUN mkdir -p /home && \
apk --no-cache add curl
COPY --from=builder /build/app /home/app
EXPOSE 9050
CMD ["./home/app"]