Add skaffold install and guide
This commit is contained in:
12
skaffold/starter/Dockerfile
Normal file
12
skaffold/starter/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM golang:1.15 as builder
|
||||
COPY main.go .
|
||||
# `skaffold debug` sets SKAFFOLD_GO_GCFLAGS to disable compiler optimizations
|
||||
ARG SKAFFOLD_GO_GCFLAGS
|
||||
RUN go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /app main.go
|
||||
|
||||
FROM alpine:3
|
||||
# Define GOTRACEBACK to mark this container as using the Go language runtime
|
||||
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
|
||||
ENV GOTRACEBACK=single
|
||||
CMD ["./app"]
|
||||
COPY --from=builder /app .
|
||||
Reference in New Issue
Block a user