stacksmith: Add Dockerfile

This commit is contained in:
stacksmith-bot 2016-06-03 10:07:22 -07:00
parent 608ac38208
commit 3aea606d29
1 changed files with 40 additions and 0 deletions

40
bitnami/rails/Dockerfile Normal file
View File

@ -0,0 +1,40 @@
## BUILDING
## (from project root directory)
## $ docker build -t bitnami-bitnami-docker-rails .
##
## RUNNING
## $ docker run -p 3000:3000 bitnami-bitnami-docker-rails
##
## CONNECTING
## Lookup the IP of your active docker host using:
## $ docker-machine ip $(docker-machine active)
## Connect to the container at DOCKER_IP:3000
## replacing DOCKER_IP for the IP of your active docker host
FROM gcr.io/stacksmith-images/debian:wheezy-r07
MAINTAINER Bitnami <containers@bitnami.com>
ENV STACKSMITH_STACK_ID="5pem3ni" \
STACKSMITH_STACK_NAME="bitnami/bitnami-docker-rails" \
STACKSMITH_STACK_PRIVATE="1"
RUN bitnami-pkg install ruby-2.3.1-1 --checksum a81395976c85e8b7c8da3c1db6385d0e909bd05d9a3c1527f8fa36b8eb093d84
ENV PATH=/opt/bitnami/ruby/bin:$PATH
## STACKSMITH-END: Modifications below this line will be unchanged when regenerating
# Ruby on Rails template
ENV RAILS_ENV=development
COPY Gemfile* /app/
WORKDIR /app
RUN bundle install --without production
COPY . /app
EXPOSE 3000
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "3000"]