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} \ && apk del --no-cache .build-deps CMD ["testssh"]