Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4c6565 committed May 22, 2020
1 parent 6eee9b5 commit 3dafcf2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3dafcf2

Please sign in to comment.