mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 23:30:39 +00:00
commit
7a608300b1
@ -5,7 +5,6 @@ FROM golang:1.13-alpine AS builder
|
|||||||
|
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
|
|
||||||
RUN mkdir -p /tmp/drone-terraform
|
|
||||||
WORKDIR /tmp/drone-terraform
|
WORKDIR /tmp/drone-terraform
|
||||||
|
|
||||||
COPY go.mod go.mod
|
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
|
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 \
|
ca-certificates \
|
||||||
git \
|
git \
|
||||||
wget \
|
wget \
|
||||||
openssh-client && \
|
openssh-client
|
||||||
rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
ARG terraform_version
|
ARG terraform_version
|
||||||
RUN wget -q https://releases.hashicorp.com/terraform/${terraform_version}/terraform_${terraform_version}_linux_amd64.zip -O terraform.zip && \
|
RUN wget -q https://releases.hashicorp.com/terraform/${terraform_version}/terraform_${terraform_version}_linux_amd64.zip -O terraform.zip && \
|
||||||
|
Loading…
Reference in New Issue
Block a user