Initial submission of API demo
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM quay01.ipa.endofday.com/everythingkubernetes/golang as build-env
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN go get -d -v ./...
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o app
|
||||
|
||||
FROM gcr.io/distroless/base
|
||||
COPY --from=build-env /app/app /app
|
||||
CMD ["/app"]
|
||||
|
||||
Reference in New Issue
Block a user