Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description
FROM ruby:2.3.1
WORKDIR /tmp

# Debian package
RUN apt-get update -qy

# pronto が依存している rugged (gitlib2) のコンパイル用
RUN apt-get install -y cmake

# dpl (heroku デプロイ用)
RUN apt-get install -y ruby-dev
RUN gem install dpl

# add phantomjs
RUN wget https://s3-ap-northeast-1.amazonaws.com/tejimaya-public/phantomjs-2.1.1-linux-x86_64.tar.bz2
RUN tar jxf phantomjs-2.1.1-linux-x86_64.tar.bz2
RUN mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin
RUN rm -rf phantomjs-2.1.1-linux-x86_64*

# add postgres (2016.10.12)
RUN apt-get install -y postgresql postgresql-server-dev-all postgresql-client
USER postgres
RUN /etc/init.d/postgresql start &&\
    psql --command "CREATE USER rails WITH LOGIN SUPERUSER PASSWORD 'password';"

# bundle update
ADD Gemfile Gemfile
RUN bundle install

# rails server port
EXPOSE 3000
Docker Pull Command
Owner
tejimaya

Comments (0)