Browse Source
Merge pull request #109 from sgerrand/patch-1
Dockerfile tweaks
pull/111/head
Jacob McCann
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
5 deletions
-
Dockerfile
|
|
@ -5,7 +5,6 @@ FROM golang:1.13-alpine AS builder |
|
|
|
|
|
|
|
RUN apk add --no-cache git |
|
|
|
|
|
|
|
RUN mkdir -p /tmp/drone-terraform |
|
|
|
WORKDIR /tmp/drone-terraform |
|
|
|
|
|
|
|
COPY go.mod go.mod |
|
|
@ -16,14 +15,13 @@ COPY . . |
|
|
|
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -o /go/bin/drone-terraform |
|
|
|
|
|
|
|
FROM alpine:3.9 |
|
|
|
FROM alpine:3.11 |
|
|
|
|
|
|
|
RUN apk -U add \ |
|
|
|
RUN apk add --no-cache \ |
|
|
|
ca-certificates \ |
|
|
|
git \ |
|
|
|
wget \ |
|
|
|
openssh-client && \ |
|
|
|
rm -rf /var/cache/apk/* |
|
|
|
openssh-client |
|
|
|
|
|
|
|
ARG terraform_version |
|
|
|
RUN wget -q https://releases.hashicorp.com/terraform/${terraform_version}/terraform_${terraform_version}_linux_amd64.zip -O terraform.zip && \ |
|
|
|