driftctl/Dockerfile

21 lines
356 B
Docker
Raw Normal View History

2021-02-17 08:59:51 +00:00
FROM golang:1.16 AS builder
ARG OS="linux"
ARG ARCH="amd64"
WORKDIR /go/src/app
COPY go.mod go.sum Makefile ./
RUN make deps
COPY . .
2021-07-27 14:16:04 +00:00
RUN make release
2021-03-10 14:04:37 +00:00
FROM alpine:3.13
ARG OS="linux"
ARG ARCH="amd64"
WORKDIR /app
2021-07-27 14:16:04 +00:00
COPY --from=builder /go/src/app/bin/driftctl_${OS}_${ARCH}/driftctl /bin/driftctl
RUN chmod +x /bin/driftctl
ENTRYPOINT ["/bin/driftctl"]