Some changes.

This commit is contained in:
Jonathan Rosenbaum
2017-09-09 02:55:37 +00:00
parent d540f29354
commit bb6109a9b5
3 changed files with 24 additions and 24 deletions
+17 -13
View File
@@ -1,22 +1,26 @@
#################
# Bike Database #
#################
# Password is password for staff@freeridepgh.org & volunteer@freeridepgh.org
# Password is password for
FROM bikebike/bikebike:16.04
FROM ruby:2.3.1
MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
RUN git clone https://github.com/Loos/bike-database.git
RUN gem install bundler
RUN apt-get update && apt-get -y install g++ libfcgi-dev libsqlite3-dev libpq-dev nodejs
COPY Gemfile /bike-database/
RUN bundle install --gemfile=/bike-database/Gemfile
COPY database.yml /bike-database/config/
RUN cd /bike-database; bundle exec rake db:create db:migrate
WORKDIR /app
RUN git clone https://github.com/Loos/bike-database.git .
#RUN apt-get update && apt-get -y install g++ libfcgi-dev libsqlite3-dev libpq-dev nodejs
RUN apt-get update && apt-get -y install libsqlite3-0 nodejs
COPY Gemfile /app
COPY seeds.rb /app/db
RUN env NOKOGIRI_USE_SYSTEM_LIBRARIES=true bundle install --gemfile=/app/Gemfile
COPY database.yml /app/config/
RUN bundle exec rake db:create db:migrate db:setup
#CMD rails server -b 0.0.0.0 -p 3000
CMD rails s
# setup to use sqlite3
COPY bike-database.conf /etc/supervisor/conf.d/
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
# docker run -d -p 3000:3000 --name="bike-database" bikebike/bike-database