All Downloads are FREE. Search and download functionalities are using the official Maven repository.

go-server.Dockerfile.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
FROM golang:1.10 AS build
WORKDIR /go/src
COPY {{apiPath}} ./{{apiPath}}
COPY main.go .

ENV CGO_ENABLED=0
RUN go get -d -v ./...

RUN go build -a -installsuffix cgo -o {{packageName}} .

FROM scratch AS runtime
COPY --from=build /go/src/{{packageName}} ./
EXPOSE 8080/tcp
ENTRYPOINT ["./{{packageName}}"]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy