builder.Dockerfile 377 字节
Newer Older
1 2
FROM golang:1.10

3 4 5 6 7 8 9 10
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    	    unzip \
	    wget

RUN wget https://releases.hashicorp.com/terraform/0.12.6/terraform_0.12.6_linux_amd64.zip -O tf.zip && \
    unzip tf.zip && mv terraform /usr/bin && rm tf.zip

11 12 13 14 15 16 17 18
ARG PKG_PATH
WORKDIR ${PKG_PATH}

COPY . .

RUN go get -u golang.org/x/lint/golint

CMD ["bash"]