stacksmith: Add Dockerfile

This commit is contained in:
stacksmith-bot
2016-07-12 17:10:49 -07:00
parent 20db42e5c8
commit 69ce6f29de

View File

@@ -1,18 +1,36 @@
## BUILDING
## (from project root directory)
## $ docker build -t bitnami-bitnami-docker-ruby .
##
## RUNNING
## $ docker run -p 3000:3000 bitnami-bitnami-docker-ruby
##
## 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/ubuntu-buildpack:14.04-r8
MAINTAINER Bitnami <containers@bitnami.com>
ENV BITNAMI_IMAGE_VERSION=2.3.1-r1 \
BITNAMI_APP_NAME=ruby
ENV STACKSMITH_STACK_ID="tanl42b" \
STACKSMITH_STACK_NAME="bitnami/bitnami-docker-ruby" \
STACKSMITH_STACK_PRIVATE="1"
RUN bitnami-pkg install ruby-2.3.1-1 --checksum a81395976c85e8b7c8da3c1db6385d0e909bd05d9a3c1527f8fa36b8eb093d84
ENV PATH=/opt/bitnami/$BITNAMI_APP_NAME/bin:/opt/bitnami/sqlite/bin:/opt/bitnami/common/bin:$PATH
RUN bitnami-pkg install imagemagick-6.7.5-10-3 --checksum 617e85a42c80f58c568f9bc7337e24c03e35cf4c7c22640407a7e1e16880cf88
RUN bitnami-pkg install mysql-libraries-10.1.13-0 --checksum 71ca428b619901123493503f8a99ccfa588e5afddd26e0d503a32cca1bc2a389
RUN bitnami-pkg install postgresql-libraries-9.5.3-0 --checksum d6499811161e9e97acfc3e0132a016bc2edcfd85374c9b5002359429bd8ab698
ENV PATH=/opt/bitnami/ruby/bin:$PATH
CMD ["irb"]
## STACKSMITH-END: Modifications below this line will be unchanged when regenerating
# Ruby base template
COPY Gemfile* /app/
WORKDIR /app
EXPOSE 3000
RUN bundle install
COPY . /app
CMD ["irb"]