diff --git a/Dockerfile b/Dockerfile index d39ae42..6a2dd21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,12 @@ FROM golang:1.9-alpine COPY . ${GOPATH}/src/git.icedream.tech/icedream/pixelqr RUN cd "${GOPATH}/src/git.icedream.tech/icedream/pixelqr" \ + && apk add --no-cache --virtual .build-deps git \ && go get -v -d ./... \ && go build \ && mv testssh /usr/local/bin \ && cd / \ - && rm -r ${GOPATH} + && rm -r ${GOPATH} \ + && apk del --no-cache .build-deps CMD ["testssh"]