Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
FROM golang:1.10 AS build-image
ADD /usr/bin/dep
RUN chmod +x /usr/bin/dep
WORKDIR $GOPATH/src/fts/STSCardValidator
COPY Gopkg.toml Gopkg.lock ./
RUN dep ensure --vendor-only
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /STSCardValidator .
RUN ls -la
FROM scratch
COPY --from=build-image /STSCardValidator ./
ENTRYPOINT ["./STSCardValidator"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.