FROM ubuntu:16.04

ENV appDir /opt/twitch/nitro/current
RUN mkdir -p $appDir
COPY ./.manta/ $appDir
COPY ./config /etc/nitro/config
RUN groupadd -r web && useradd --no-log-init -r -g web web
RUN chown -R web:web $appDir

USER web
EXPOSE 8000
ENTRYPOINT ["/opt/twitch/nitro/current/nitro"]
