mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-01-30 17:13:46 +01:00
camlistore
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
7e31f3cb58
commit
08071990c2
33
camlistore/Dockerfile
Normal file
33
camlistore/Dockerfile
Normal file
|
@ -0,0 +1,33 @@
|
|||
FROM alpine
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
ENV GOPATH /go
|
||||
|
||||
RUN apk update && apk add \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN buildDeps=' \
|
||||
go \
|
||||
git \
|
||||
gcc \
|
||||
libc-dev \
|
||||
libgcc \
|
||||
' \
|
||||
set -x \
|
||||
&& apk update \
|
||||
&& apk add $buildDeps \
|
||||
&& mkdir -p /go/src/camlistore.googlesource.com \
|
||||
&& cd /go/src/camlistore.googlesource.com \
|
||||
&& git clone --depth 1 -b 0.9 https://camlistore.googlesource.com/camlistore.git \
|
||||
&& cd /go/src/camlistore.googlesource.com/camlistore \
|
||||
&& go run make.go \
|
||||
&& cp -r ./bin/* /usr/local/bin/ \
|
||||
&& apk del $buildDeps \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
&& rm -rf /go \
|
||||
&& echo "Build complete."
|
||||
|
||||
|
||||
ENTRYPOINT [ "camlistored" ]
|
Loading…
Reference in New Issue
Block a user