diff --git a/Dockerfile b/Dockerfile index 316ad7f..03dc9cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,22 +8,17 @@ ENV APK_DEL_PKGS "libc-dev git go" RUN mkdir -p "${GOPATH}" # set up edge repo pin for latest golang version -RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories - -# install latest golang -RUN apk add --no-cache ${APK_ADD_PKGS} - -# build huproxy -RUN go get github.com/google/huproxy - -# remove apk packages -RUN apk del ${APK_DEL_PKGS} - -# move huproxy binary -RUN mv "${GOPATH}/bin/huproxy" / - -# cleanup GOPATH -RUN rm -Rf "${GOPATH}" +RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \ + # install latest golang + apk add --no-cache ${APK_ADD_PKGS} && \ + # build huproxy + go get github.com/google/huproxy && \ + # remove apk packages + apk del ${APK_DEL_PKGS} && \ + # move huproxy binary + mv "${GOPATH}/bin/huproxy" / && \ + # cleanup GOPATH + rm -Rf "${GOPATH}" EXPOSE 8086