mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
7eea00edf3
Signed-off-by: Michael Käufl <dockerfiles@c.michael-kaeufl.de>
33 lines
735 B
Docker
33 lines
735 B
Docker
FROM alpine:latest
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
|
ENV GOPATH /go
|
|
|
|
RUN apk --no-cache add \
|
|
ca-certificates
|
|
|
|
ENV CAMLISTORE_VERSION 0.9
|
|
|
|
RUN buildDeps=' \
|
|
go \
|
|
git \
|
|
gcc \
|
|
libc-dev \
|
|
libgcc \
|
|
' \
|
|
set -x \
|
|
&& apk --no-cache add $buildDeps \
|
|
&& mkdir -p /go/src/camlistore.googlesource.com \
|
|
&& cd /go/src/camlistore.googlesource.com \
|
|
&& git clone --depth 1 --branch "${CAMLISTORE_VERSION}" 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 /go \
|
|
&& echo "Build complete."
|
|
|
|
|
|
ENTRYPOINT [ "camlistored" ]
|