1
0
mirror of https://github.com/fspc/freehub.git synced 2025-02-28 11:33:25 -05:00
freehub/Dockerfile

23 lines
702 B
Docker
Raw Normal View History

2014-12-10 16:49:46 +00:00
###########
# FreeHub #
###########
# Password is test for greeter, sfbk, mechanic, scbc, cbi, admin
FROM bikebike/bikebike
2022-01-11 07:24:01 +00:00
LABEL Jonathan Rosenbaum <gnuser@gmail.com>
2014-12-10 16:49:46 +00:00
2022-01-11 07:24:01 +00:00
RUN git clone https://github.com/asalant/freehub.git
2022-01-11 07:43:06 +00:00
# requires >= ruby-2.3 so will need to update the BikeBike image
2014-12-10 16:49:46 +00:00
RUN gem install bundler
#RUN apt-get -y install ruby-dev
RUN bundle install --gemfile=/freehub/Gemfile
RUN service mysql start; cd /freehub; rake db:create:all; rake db:migrate; rake db:fixtures:load
COPY mysql.conf /etc/supervisor/conf.d/
COPY freehub.conf /etc/supervisor/conf.d/
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
# docker run -d -p 3000:3000 --name="freehub" bikebike/freehub