FROM ubuntu:16.04

ENV appDir /opt/twitch/necrophos/current
RUN mkdir -p $appDir
COPY ./.manta/ $appDir
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/necrophos/current/necrophos"]
