mirror of
https://github.com/openfaas/faas.git
synced 2025-06-16 21:06:54 +00:00
14 lines
250 B
Docker
14 lines
250 B
Docker
FROM golang:1.7.3
|
|
RUN mkdir -p /go/src/app
|
|
WORKDIR /go/src/app
|
|
COPY main.go .
|
|
COPY readconfig.go .
|
|
COPY config_test.go .
|
|
|
|
WORKDIR /go/src/app
|
|
RUN go get -d -v
|
|
|
|
RUN go test
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
|
|