2016-09-19 21:12:06 +02:00
|
|
|
FROM alpine:latest
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2016-03-16 23:11:08 +01:00
|
|
|
|
|
|
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
2016-06-06 05:40:20 +02:00
|
|
|
RUN apk --no-cache add \
|
|
|
|
ca-certificates
|
2016-03-16 23:11:08 +01:00
|
|
|
|
2016-09-19 21:12:06 +02:00
|
|
|
ENV CAMLISTORE_VERSION 0.9
|
|
|
|
|
2016-03-16 23:11:08 +01:00
|
|
|
RUN buildDeps=' \
|
|
|
|
go \
|
|
|
|
git \
|
|
|
|
gcc \
|
|
|
|
libc-dev \
|
|
|
|
libgcc \
|
|
|
|
' \
|
|
|
|
set -x \
|
2016-06-06 05:40:20 +02:00
|
|
|
&& apk --no-cache add $buildDeps \
|
2016-03-16 23:11:08 +01:00
|
|
|
&& mkdir -p /go/src/camlistore.googlesource.com \
|
|
|
|
&& cd /go/src/camlistore.googlesource.com \
|
2016-12-28 02:04:58 +01:00
|
|
|
&& git clone --depth 1 --branch "${CAMLISTORE_VERSION}" https://camlistore.googlesource.com/camlistore.git \
|
2016-03-16 23:11:08 +01:00
|
|
|
&& cd /go/src/camlistore.googlesource.com/camlistore \
|
|
|
|
&& go run make.go \
|
|
|
|
&& cp -r ./bin/* /usr/local/bin/ \
|
|
|
|
&& apk del $buildDeps \
|
|
|
|
&& rm -rf /go \
|
|
|
|
&& echo "Build complete."
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "camlistored" ]
|