Fix docker build

main
Elie 2021-07-27 16:16:04 +02:00
parent 658c6333a1
commit f54656ccd4
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
1 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ WORKDIR /go/src/app
COPY go.mod go.sum Makefile ./
RUN make deps
COPY . .
RUN OS_ARCH=${OS}/${ARCH} make release
RUN make release
FROM alpine:3.13
@ -15,5 +15,6 @@ ARG OS="linux"
ARG ARCH="amd64"
WORKDIR /app
COPY --from=builder /go/src/app/bin/driftctl_${OS}_${ARCH} /bin/driftctl
COPY --from=builder /go/src/app/bin/driftctl_${OS}_${ARCH}/driftctl /bin/driftctl
RUN chmod +x /bin/driftctl
ENTRYPOINT ["/bin/driftctl"]