mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-07 00:46:56 +00:00
16 lines
321 B
Docker
16 lines
321 B
Docker
FROM golang:1.17-alpine as builder
|
|
RUN apk add --no-cache git make curl
|
|
ENV GOOS=linux
|
|
ENV CGO_ENABLED=0
|
|
ENV GO111MODULE=on
|
|
COPY . /src
|
|
WORKDIR /src
|
|
RUN make test
|
|
RUN make alpine
|
|
|
|
FROM alpine:3
|
|
RUN export PATH=$PATH:/app
|
|
WORKDIR /app
|
|
COPY --from=builder /src/bin/wonderwall /app/wonderwall
|
|
ENTRYPOINT ["/app/wonderwall"]
|