dockerfiles/gitiles/Dockerfile
Marc Cornellà 7ac4881609 Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
2016-06-06 03:40:20 +00:00

35 lines
745 B
Docker

FROM java:8-alpine
MAINTAINER Jessica Frazelle <jess@docker.com>
# install buck
RUN buildDeps=' \
apache-ant \
bash \
git \
perl \
python \
zip \
' \
set -x \
&& apk --no-cache add $buildDeps \
--repository http://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" ]