Fix missing git during build.

test/ssh
Icedream 2017-09-04 11:40:15 +02:00
parent b00f9a5605
commit 9da29de05b
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 3 additions and 1 deletions

View File

@ -2,10 +2,12 @@ FROM golang:1.9-alpine
COPY . ${GOPATH}/src/git.icedream.tech/icedream/pixelqr COPY . ${GOPATH}/src/git.icedream.tech/icedream/pixelqr
RUN cd "${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 get -v -d ./... \
&& go build \ && go build \
&& mv testssh /usr/local/bin \ && mv testssh /usr/local/bin \
&& cd / \ && cd / \
&& rm -r ${GOPATH} && rm -r ${GOPATH} \
&& apk del --no-cache .build-deps
CMD ["testssh"] CMD ["testssh"]