mirror of
https://github.com/openfaas/faas.git
synced 2025-06-13 18:56:46 +00:00
**What** - Move the new secrets sample function to ApiKeyProtected-Secrets - Bring back the original ApiKeyProtected sample function Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
24 lines
469 B
Docker
24 lines
469 B
Docker
FROM golang:1.7.5 as builder
|
|
RUN mkdir -p /go/src/app
|
|
COPY handler.go /go/src/app
|
|
WORKDIR /go/src/app
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /root/
|
|
|
|
EXPOSE 8080
|
|
ENV http_proxy ""
|
|
ENV https_proxy ""
|
|
|
|
ADD https://github.com/alexellis/faas/releases/download/0.6.6d/fwatchdog /usr/bin
|
|
RUN chmod +x /usr/bin/fwatchdog
|
|
|
|
COPY --from=builder /go/src/app/app .
|
|
|
|
ENV fprocess="/root/app"
|
|
CMD ["fwatchdog"]
|