forked from loafle/openapi-generator-original
* Update codegen config * Add templates for Go Echo openapi-codegen * Add the yaml config file! * Add GoEchoServerCodegen.java. This is the first iteration, it works but probably needs a lot of improvements. * Update codegen, adds some comments. * Update GoEchoServerCodegen.java * Update GoEchoServerCodegen.java * Update GoEchoServerCodegen.java and related yaml file * Add the result of generate-samples.sh for CI purposes. * Add the result of bin/utils/ensure-up-to-date for CI purposes. * Update go-echo-server-petstore-new.yaml Fix the outputdir * Update in regard to result of ./bin/generate-samples.sh * Update in regard to result of ./bin/generate-samples.sh * Remove wrongly generated files * Add correct generated files. * Add changes regarding /bin/utils/ensure-up-to-date * Update templates to include comments. * Update/add result of ./bin/generate-samples.sh and ./bin/utils/export_docs_generators.sh
11 lines
275 B
Docker
11 lines
275 B
Docker
FROM golang:1.16-alpine3.13 as build-env
|
|
RUN apk add --no-cache git gcc
|
|
RUN mkdir /app
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o openapi
|
|
FROM alpine:3.13
|
|
COPY --from=build-env /app/openapi .
|
|
EXPOSE 8080/tcp
|
|
USER 1001
|
|
ENTRYPOINT ["./openapi"] |