Created
February 3, 2020 19:56
-
-
Save kasvith/dfc0b32978eb586b8382a039f7d68257 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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