ispime gopkg
This commit is contained in:
@ -6,6 +6,8 @@ FROM golang:1.13 as builder
|
||||
# Create and change to the app directory.
|
||||
WORKDIR /app
|
||||
|
||||
RUN go get -u github.com/golang/dep/cmd/dep
|
||||
|
||||
# Retrieve application dependencies.
|
||||
# This allows the container build to reuse cached dependencies.
|
||||
COPY go.* ./
|
||||
@ -14,6 +16,9 @@ RUN go mod download
|
||||
# Copy local code to the container image.
|
||||
COPY . ./
|
||||
|
||||
#Ensure dependencies with dep
|
||||
RUN dep ensure
|
||||
|
||||
# Build the binary.
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -v -o server
|
||||
|
||||
|
5
isprime-go/Gopkg.toml
Normal file
5
isprime-go/Gopkg.toml
Normal file
@ -0,0 +1,5 @@
|
||||
ignored = ["github.com/kubeless/kubeless/pkg/functions"]
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/sirupsen/logrus"
|
||||
branch = "master"
|
Reference in New Issue
Block a user