vmpooler/Dockerfile
Scott Schneider 833e34ce37 Update Dockerfile to move Gemflie*
...instead of Gemfile and Gemfile.lock (if it exists) individually
2016-12-20 10:45:36 -08:00

21 lines
579 B
Docker

FROM jruby:1.7-jdk
RUN mkdir -p /var/lib/vmpooler
WORKDIR /var/lib/vmpooler
ADD Gemfile* /var/lib/vmpooler
RUN bundle install --system
RUN ln -s /opt/jruby/bin/jruby /usr/bin/jruby
RUN echo "deb http://httpredir.debian.org/debian jessie main" >/etc/apt/sources.list.d/jessie-main.list
RUN apt-get update
RUN apt-get install -y redis-server
COPY . /var/lib/vmpooler
ENTRYPOINT \
/etc/init.d/redis-server start \
&& /var/lib/vmpooler/scripts/vmpooler_init.sh start \
&& while [ ! -f /var/log/vmpooler.log ]; do sleep 1; done ; \
tail -f /var/log/vmpooler.log