As opposed to having a single Dockerfile with support for only one
distro.
--- /dev/null
+# LibYAML Dockerfiles
+
+This directory is a collection of dockerfiles that can be used when developing
+and testing LibYAML.
+
+The current list is supports:
+
+- Ubuntu 16.04
+- Ubuntu 14.04
+
+## Example Usage
+
+```bash
+$ docker pull ubuntu
+$ docker build -t libyaml-ubuntu:16.04 -f dockerfiles/ubuntu-16.04 .
+$ docker run -it libyaml-ubuntu:16.04 make test
+```
--- /dev/null
+# vim: ft=dockerfile
+FROM ubuntu:14.04
+
+RUN apt-get update && \
+ apt-get install -y \
+ autoconf \
+ build-essential \
+ git \
+ libtool \
+ vim && \
+ rm -rf /var/lib/apt/lists/*
+
+RUN mkdir /libyaml
+COPY . /libyaml/
+WORKDIR /libyaml
+
+RUN ./bootstrap
+RUN ./configure
+RUN make
+RUN make install
+CMD ["bash"]
+# vim: ft=dockerfile
FROM ubuntu:16.04
+
RUN apt-get update && \
apt-get install -y \
autoconf \
build-essential \
git \
- gist \
libtool \
- tig \
- vim
+ vim && \
+ rm -rf /var/lib/apt/lists/*
+RUN mkdir /libyaml
+COPY . /libyaml/
WORKDIR /libyaml
+RUN ./bootstrap
+RUN ./configure
+RUN make
+RUN make install
CMD ["bash"]