FROM ubuntu:precise
MAINTAINER Release Engineering

RUN apt-get update
RUN apt-get install -y ca-certificates

ADD .manta/cmd/deploy/assets /deploy/assets

ADD .manta/bin/deploy /deploy/deploy
RUN chmod +x /deploy/deploy

EXPOSE 8081
WORKDIR /deploy

ENV ASSET_PATH /deploy/assets
ENV HTTP_PORT 8081

# assumes that deployer is binding /etc/twitch on the host to access config file written by puppet
ENV CONFIG /etc/twitch/deploy/config.json

CMD ./deploy
