forked from loafle/openapi-generator-original
* Support additionalPorperties as command line arguments * Move Readme into main dir * Update Mustache * Update sample * Test coverage * Move cli options * Revert options * Remove tabs * openapi 3 examples * Update readme * serverPort to int * Move package version cli option to AbstractGoCodegen * Update samples * Tab to spaces * Update docs and sample with xml * Manual update doc * Another doc try * Regenerate go-gin-server doc
15 lines
281 B
Docker
15 lines
281 B
Docker
FROM golang:1.10 AS build
|
|
WORKDIR /go/src
|
|
COPY ./
|
|
COPY main.go .
|
|
|
|
ENV CGO_ENABLED=0
|
|
RUN go get -d -v ./...
|
|
|
|
RUN go build -a -installsuffix cgo -o petstoreserver .
|
|
|
|
FROM scratch AS runtime
|
|
COPY --from=build /go/src/petstoreserver ./
|
|
EXPOSE 8080/tcp
|
|
ENTRYPOINT ["./petstoreserver"]
|