0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-06-03 04:49:42 +02:00

Merge pull request #109 from sgerrand/patch-1

Dockerfile tweaks
This commit is contained in:
Jacob McCann 2020-02-05 10:49:46 -06:00 committed by GitHub
commit 7a608300b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 && \