dockerfiles/gitiles/Dockerfile
Jess Frazelle 455b5ca9e0
cleanup
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
2016-04-06 07:04:12 -07:00

35 lines
778 B
Docker

FROM java:8-alpine
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk --update add \
apache-ant \
bash \
git \
perl \
python \
zip \
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
&& rm -rf /var/cache/apk/*
# install buck
RUN 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 all \
&& mv buck-out/gen/gitiles/gitiles.war /gitiles.war \
) \
&& rm -rf /gitiles \
&& rm -rf /buck
COPY ./start.sh /start.sh
ENTRYPOINT [ "/start.sh" ]