Docker file to build and distribut istanbul tools

This commit is contained in:
Alexander Kolotov 2020-06-24 23:02:01 +03:00
parent a80ca18518
commit 1128b8e7a7
2 changed files with 11 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
Dockerfile
build

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM golang:1.14.4 AS builder
WORKDIR /src
COPY . .
RUN make dist
RUN tar -xz -C build -f build/`ls -1 build | grep istanbul-tools`
FROM alpine:latest
COPY --from=builder /src/build/istanbul /bin/
ENTRYPOINT [ "/bin/istanbul" ]