From 3dafcf26f05deeff88116cd9ebb5fe6db4ae28cf Mon Sep 17 00:00:00 2001 From: Lee Spottiswood Date: Fri, 22 May 2020 14:04:41 +0100 Subject: [PATCH] add dockerfile --- Dockerfile | 8 ++++++++ go.mod | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..551eb2d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:1.13 AS builder +COPY . /build +WORKDIR /build +RUN go mod download +RUN CGO_ENABLED=0 go build + +FROM hashicorp/terraform:latest +COPY --from=builder /build/terraform-provider-safedns /root/.terraform.d/plugins/linux_amd64/terraform-provider-safedns diff --git a/go.mod b/go.mod index 5950ba5..136834d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gitlab.devops.ukfast.co.uk/ukfast/api.ukfast/client-libraries/terraform-provider-safedns -go 1.12 +go 1.13 require ( github.com/hashicorp/terraform v0.12.9