mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-09 18:06:42 +00:00
15 lines
321 B
Docker
15 lines
321 B
Docker
FROM golang:1.20.1-alpine as builder
|
|
RUN apk add --no-cache git make curl
|
|
ENV GOOS=linux
|
|
ENV CGO_ENABLED=0
|
|
COPY . /src
|
|
WORKDIR /src
|
|
RUN make test
|
|
RUN make check
|
|
RUN make wonderwall
|
|
|
|
FROM gcr.io/distroless/static-debian11
|
|
WORKDIR /app
|
|
COPY --from=builder /src/bin/wonderwall /app/wonderwall
|
|
ENTRYPOINT ["/app/wonderwall"]
|