pixelqr/Dockerfile

16 lines
412 B
Docker

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 \
&& echo == Downloading... == \
&& go get -v -d ./... \
&& echo == Building... == \
&& go build -v \
&& mv testssh /usr/local/bin \
&& cd / \
&& rm -r ${GOPATH} \
&& apk del --no-cache .build-deps
CMD ["testssh"]