meteologica/service_a/Dockerfile
2025-10-22 00:45:18 +02:00

20 lines
285 B
Docker

FROM golang:1.25.2-alpine3.22 AS builder
WORKDIR /app
COPY go.mod ./
COPY server/ ./server/
RUN go mod download
RUN go build -o /app/service_a ./server/main.go
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/service_a /app/service_a
EXPOSE 8080
CMD ["/app/service_a"]