mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
Adds docker.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#################
|
||||
# Bike Database #
|
||||
#################
|
||||
# Password is password for
|
||||
|
||||
FROM ruby:2.3.1
|
||||
MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user