Skip to content

Commit 21861d5

Browse files
nmohoricohaiwalt
authored andcommitted
Use docker's multistage build to take the image back down to 5-6mb compressed (#86)
1 parent 94a0601 commit 21861d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ RUN apk -U add --virtual .build_deps \
2424
apk del .build_deps && \
2525
rm -Rf /var/cache/apk/* && \
2626
rm -Rf $GOPATH
27+
28+
29+
FROM alpine:3.6
30+
31+
RUN mkdir -p /var/operable/relay
32+
COPY --from=0 /usr/local/bin/relay /usr/local/bin
33+
COPY --from=0 /usr/local/etc/relay.conf /usr/local/etc/relay.conf

0 commit comments

Comments
 (0)