14 lines
360 B
Docker
14 lines
360 B
Docker
FROM golang:1.16.2 as builder
|
|
|
|
WORKDIR /go/src/github.com/authelia/authelia
|
|
COPY ./authelia/ ./
|
|
RUN cd cmd/authelia && go build -o /authelia -a -installsuffix cgo -ldflags "-s -w" && /authelia -h
|
|
|
|
FROM frolvlad/alpine-glibc:glibc-2.29
|
|
WORKDIR /opt
|
|
COPY --from=builder /authelia ./
|
|
RUN ls && ./authelia -h && du -sh ./authelia
|
|
|
|
CMD ["./authelia"]
|
|
ENTRYPOINT []
|