1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 08:43:23 -05:00
BikeShed-1/Dockerfile
Jason Denney 4fe8865aca Dockerize! Startup with docker-compose up
Make sure to docker-compose build first
2016-02-25 13:36:01 -08:00

24 lines
630 B
Docker

FROM ruby:2.1
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y nodejs --no-install-recommends && \
apt-get install -y mysql-client postgresql-client sqlite3 --no-install-recommends && \
apt-get install -y zip unzip --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/
RUN bundle install
COPY install_extjs.rb /usr/src/app/
RUN /usr/src/app/install_extjs.rb
EXPOSE 3000
CMD ["rails", "server", "-b", "0.0.0.0"]