Skip to content

Commit

Permalink
add env MARKET_PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
y12studio committed Sep 3, 2014
1 parent 05fcdf4 commit ba18803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ RUN cd /bazaar && pip install -r requirements.txt &&\
pip install pysqlcipher

ENV HTTP_PORT 8888
ENV MARKET_PORT 12345

WORKDIR /bazaar
ENV LOG_PATH /bazaar/logs/production.log
# touch log file before bash run.sh to keep tail -f work
RUN mkdir -p /bazaar/logs && touch $LOG_PATH
CMD IP=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') && \
bash run.sh -k $IP -q $HTTP_PORT && tail -f $LOG_PATH
bash run.sh -k $IP -q $HTTP_PORT -p $MARKET_PORT && tail -f $LOG_PATH
# clean tmp file
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

0 comments on commit ba18803

Please sign in to comment.