FROM ubuntu:16.04

ENV appDir /opt/twitch/automation-webhooks/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
RUN apt-get update && apt-get install -y tzdata

USER web
EXPOSE 8000
ENTRYPOINT ["/opt/twitch/automation-webhooks/current/automation-webhooks"]
