Skip to content

Commit 0ccdb3b

Browse files
authored
Build docker image using scratch as final base layer (#44)
1 parent 9070a97 commit 0ccdb3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ COPY . ./
1515

1616
RUN make build-docker
1717

18-
FROM alpine:latest
18+
FROM scratch
1919

2020
COPY --from=builder /go/src/github.com/infobloxopen/migrate/cmd/migrate/config /cli/config/
21-
COPY --from=builder /go/src/github.com/infobloxopen/migrate/build/migrate.linux-386 /usr/local/bin/migrate
22-
RUN ln -s /usr/local/bin/migrate /migrate
21+
COPY --from=builder /go/src/github.com/infobloxopen/migrate/build/migrate.linux-386 /migrate
22+
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs/
2323

2424
ENTRYPOINT ["migrate"]
2525
CMD ["--help"]

0 commit comments

Comments
 (0)