mirror of
https://github.com/openfaas/faas.git
synced 2025-06-23 15:23:29 +00:00
The basic-auth middleware and credentials-loading code has been moved into the faas-provider project. This has now been brought back into the faas project via vendoring. Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
26 lines
556 B
Docker
26 lines
556 B
Docker
FROM golang:1.9.7-alpine
|
|
|
|
RUN mkdir -p /go/src/github.com/openfaas/faas-provider/
|
|
|
|
WORKDIR /go/src/github.com/openfaas/faas-provider
|
|
|
|
COPY vendor vendor
|
|
COPY types types
|
|
COPY auth auth
|
|
COPY serve.go .
|
|
|
|
RUN go test ./auth/ -v \
|
|
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o faas-provider .
|
|
|
|
FROM alpine:3.7
|
|
RUN apk --no-cache add ca-certificates
|
|
WORKDIR /root/
|
|
|
|
EXPOSE 8080
|
|
ENV http_proxy ""
|
|
ENV https_proxy ""
|
|
|
|
COPY --from=0 /go/src/github.com/openfaas/faas-provider/faas-provider .
|
|
|
|
CMD ["./faas-provider]
|