dockerfiles/gitiles/Dockerfile
Jess Frazelle d639673cf6
http:// -> https://
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-10-25 13:37:56 -07:00

36 lines
753 B
Docker

FROM java:8-alpine
MAINTAINER Jessie Frazelle <jess@linux.com>
# install buck
RUN buildDeps=' \
apache-ant \
bash \
curl \
git \
perl \
python \
zip \
' \
set -x \
&& apk --no-cache add $buildDeps \
--repository https://dl-3.alpinelinux.org/alpine/edge/community/ \
&& git clone --depth 1 https://github.com/facebook/buck.git /buck \
&& ( \
cd /buck \
&& ant \
&& ln -snfv ${PWD}/bin/buck /usr/bin/buck \
) \
&& git clone --depth 1 --recurse-submodules https://gerrit.googlesource.com/gitiles /gitiles \
&& ( \
cd /gitiles \
&& touch .nobuckcheck \
&& git submodule update --init \
&& buck build gitiles-dev:dev \
) \
&& apk del $buildDeps \
&& rm -rf /buck
COPY start.sh /start.sh
ENTRYPOINT [ "/start.sh" ]