FROM ubuntu:18.04

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

RUN wget -qO- https://github.com/swagger-api/swagger-ui/archive/v2.2.6.tar.gz | tar xvz -C /; mv /swagger-ui-2.2.6/ /app/

COPY nginx.conf /nginx.conf
COPY index.html /app/dist/index.html

EXPOSE 80

CMD nginx -c /nginx.conf
