pixelqr/Dockerfile

16 lines
420 B
Docker
Raw Permalink Normal View History

2017-09-04 09:39:17 +00:00
FROM golang:1.9-alpine
COPY . ${GOPATH}/src/git.icedream.tech/icedream/pixelqr
2017-09-04 09:47:01 +00:00
RUN cd "${GOPATH}/src/git.icedream.tech/icedream/pixelqr/testssh" \
2017-09-04 09:40:15 +00:00
&& apk add --no-cache --virtual .build-deps git \
2017-09-04 09:41:13 +00:00
&& echo == Downloading... == \
2017-09-04 09:39:17 +00:00
&& go get -v -d ./... \
2017-09-04 09:41:13 +00:00
&& echo == Building... == \
&& go build -v \
2017-09-04 09:39:17 +00:00
&& mv testssh /usr/local/bin \
&& cd / \
2017-09-04 09:40:15 +00:00
&& rm -r ${GOPATH} \
&& apk del --no-cache .build-deps
2017-09-04 09:39:17 +00:00
CMD ["testssh"]