summaryrefslogtreecommitdiff
path: root/vendor/Dockerfile/Golang-alpine.Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/Dockerfile/Golang-alpine.Dockerfile')
-rw-r--r--vendor/Dockerfile/Golang-alpine.Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/Dockerfile/Golang-alpine.Dockerfile b/vendor/Dockerfile/Golang-alpine.Dockerfile
new file mode 100644
index 00000000000..0287315219b
--- /dev/null
+++ b/vendor/Dockerfile/Golang-alpine.Dockerfile
@@ -0,0 +1,17 @@
+FROM golang:1.8-alpine AS builder
+
+WORKDIR /usr/src/app
+
+COPY . .
+RUN go-wrapper download
+RUN go build -v
+
+FROM alpine:3.5
+
+# We'll likely need to add SSL root certificates
+RUN apk --no-cache add ca-certificates
+
+WORKDIR /usr/local/bin
+
+COPY --from=builder /usr/src/app/app .
+CMD ["./app"]