Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Go-Dockerfile
FROM golang:1.10 AS build-image
ADD https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 /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.