simpleauth/build/Containerfile

13 lines
238 B
Docker

FROM golang:1-alpine AS builder
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
FROM alpine
COPY --from=builder /go/bin/simpleauth /bin
COPY --from=builder /go/src/app/static /static
CMD ["/bin/simpleauth"]