mirror of
https://github.com/openfaas/faas.git
synced 2025-06-23 15:23:29 +00:00
Add travis and fix Dockerfile for test files
This commit is contained in:
@ -1,6 +1,13 @@
|
||||
FROM golang:1.7.3
|
||||
RUN mkdir -p /go/src/app
|
||||
COPY main.go /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 .
|
||||
|
||||
|
Reference in New Issue
Block a user