dockerfiles/watchman/Dockerfile
Jess Frazelle 3e0fc7968f
better git clones
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-27 17:04:58 -08:00

31 lines
727 B
Docker

FROM debian:sid
MAINTAINER Jessie Frazelle <jess@linux.com>
RUN apt-get update && apt-get install -y \
ca-certificates \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV WATCHMAN_VERSION v4.7.0
RUN buildDeps=' \
autoconf \
automake \
clang \
git \
make \
' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& git clone --depth 1 --branch "${WATCHMAN_VERSION}" https://github.com/facebook/watchman.git /usr/src/watchman \
&& cd /usr/src/watchman \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install \
&& rm -rf /usr/src/watchman \
&& apt-get purge -y --auto-remove $buildDeps
ENTRYPOINT [ "watchman" ]