FROM ubuntu:14.04.5

RUN apt-get update && apt-get install -y \
    git \
    nginx

RUN git clone https://github.com/swagger-api/swagger-ui.git /app
WORKDIR /app
RUN git checkout -b tmp v2.2.6
RUN chmod 777 /app -R

ADD nginx.conf /nginx.conf

ADD index.html /app/dist/index.html

EXPOSE 80

CMD nginx -c /nginx.conf
