Skip to content

Instantly share code, notes, and snippets.

@Casao
Created March 9, 2015 17:17
Show Gist options
  • Save Casao/0105529a260b62f5192c to your computer and use it in GitHub Desktop.
Save Casao/0105529a260b62f5192c to your computer and use it in GitHub Desktop.
FROM toastercup/docker-centos-rbenv
MAINTAINER ContentEnablementProductTeam@careerbuilder.com
# Environmental Variables
ENV PORT 80
# Clean up yum cache
RUN yum clean all
USER $APP_USER
WORKDIR $APP_PATH
# Install app dependencies
COPY Gemfile* ${APP_PATH}/
RUN bundle install
FROM toastercup/base
MAINTAINER dickbutt@dickbuttinc.com
# Install node system dependencies
RUN yum install -y epel-release
RUN yum install -y nodejs npm
# Install global app dependencies
RUN npm install -g bower
COPY bower.json .bowerrc ${APP_PATH}/
RUN bower install --config.interactive=false --production
FROM toastercup/bower
MAINTAINER kingkai@dbz.com
EXPOSE $PORT
CMD bundle exec rackup --host 0.0.0.0 --port $PORT config.ru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment