Files
wonderwall/Dockerfile
sindrerh2 fb4adc9cc5 feat: add templated error page
Co-authored-by: Trong Huu Nguyen <trong.huu.nguyen@nav.no>
2021-10-05 14:09:09 +02:00

17 lines
372 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
COPY --from=builder /src/templates /app/templates/
ENTRYPOINT ["/app/wonderwall"]