You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
334 B
13 lines
334 B
FROM golang:1.26.8-alpine AS builder
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY main.go ./
|
|
COPY internal ./internal
|
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /laundry-status .
|
|
|
|
FROM scratch
|
|
COPY --from=builder /laundry-status /laundry-status
|
|
USER 65532:65532
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/laundry-status"]
|
|
|