Skip to content

Instantly share code, notes, and snippets.

@kasvith
Created February 3, 2020 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasvith/dfc0b32978eb586b8382a039f7d68257 to your computer and use it in GitHub Desktop.
Save kasvith/dfc0b32978eb586b8382a039f7d68257 to your computer and use it in GitHub Desktop.
FROM golang:1.13 AS builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o agent .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root
COPY --from=builder /app/agent .
ENTRYPOINT [ "/root/agent" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment