2015-04-24 08:35:22 +02:00
|
|
|
FROM iojs:latest
|
2015-03-17 01:21:16 +01:00
|
|
|
|
2015-03-31 15:22:06 +02:00
|
|
|
RUN ln -snf /usr/bin/nodejs /usr/bin/node
|
|
|
|
RUN apt-get update && apt-get install -y python-dev build-essential python-pip git && pip install ansible && apt-get clean
|
2015-03-17 01:21:16 +01:00
|
|
|
|
|
|
|
ADD . /srv/semaphore
|
|
|
|
WORKDIR /srv/semaphore
|
|
|
|
|
|
|
|
RUN npm install
|
2015-04-17 20:22:12 +02:00
|
|
|
RUN ./node_modules/.bin/bower install --allow-root
|
2015-03-31 15:22:06 +02:00
|
|
|
|
|
|
|
ENV NODE_ENV production
|
2015-04-24 08:35:22 +02:00
|
|
|
ENV REDIS_PORT 6379
|
2015-03-17 01:21:16 +01:00
|
|
|
CMD ["node", "/srv/semaphore/bin/semaphore"]
|
|
|
|
|
2015-03-31 15:22:06 +02:00
|
|
|
EXPOSE 80
|