FROM ansible/ubuntu14.04-ansible:latest RUN apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ apt-get clean && \ apt-get -y update && \ apt-get install -y curl && \ curl -sL https://deb.nodesource.com/setup_0.12 | bash - RUN apt-get -y update && \ apt-get install -y build-essential \ nodejs \ python-dev \ vim && \ pip install pywinrm==0.1.1 RUN ln -snf /usr/bin/nodejs /usr/bin/node RUN mkdir /usr/local/share/ca-certificates/github-enterprise-com && \ echo -n | openssl s_client -connect my.ghe.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /usr/local/share/ca-certificates/github-enterprise-com/ca.crt && \ update-ca-certificates ADD . /srv/semaphore WORKDIR /srv/semaphore RUN npm config set registry http://internal-artifactory.example.com/artifactory/api/npm/remote-npm RUN npm install RUN ./node_modules/.bin/bower install --allow-root ENV NODE_ENV production ENV REDIS_PORT 6379 CMD ["node", "/srv/semaphore/bin/semaphore"] EXPOSE 80